dbELnorm(x, delta=0.05, num.mc=1000, pvl.Table=TRUE, vrb=TRUE)
'x' is a list object where each item in the list is a different set of data.
The 'delta' value must be in the range [0,1]. Essentially this setting controls the range over which a minimum is taken to produce the EL ratio test statistic. The range is from 1 to n^(1-'delta') where 'n' represents the number of observations in 'x'.
The 'pvl.Table' is a binary option where when TRUE, the p-value for the test statistic is determined by imputation from a stored table of test statistics and significance levels for common sample sizes. If 'pvl.Table' is FALSE, then the p-value is determined from Monte-Carlo simulations where the number of resamplings is set by 'num.mc'.
x = rnorm(30, 3,1)
y = rnorm(40, 4,1)
Lst = list(x,y)
dbELnorm(Lst)
y = runif(40)
Lst = list(x,y)
dbELnorm(Lst)
Run the code above in your browser using DataLab