lrt {merror} | R Documentation |
Likelihood ratio test statistic - H0: all betas = one.
lrt(x, M = 40)
x |
n (no. of items) x N (no. of methods) matrix or data.frame containing the measurements. N must be greater than 3 and n > N. |
M |
Maximum no. of iterations for convergence. |
See Jaech, pp. 204-205.
n.items |
No.of items. |
N.methods |
No. of methods.' |
beta.bars |
N vector of estimated betas. |
lambda |
Chi-square test statistic. |
df |
Degrees of freedom for the test (N-1).' |
p.value |
Empirical significance level for the observed test statistic.' |
Richard A. Bilonick rab@nauticom.net
Jaech, J. L. (1985) Statistical Analysis of Measurement Errors. New York: Wiley.
data(pm2.5) lrt(pm2.5) # compare all 5 samplers (4 personal and 1 frm) lrt(pm2.5[,1:4]) # compare only the personal samplers stem(lrt(pm2.5)$beta.bars) # examine the estimated betas