lrt | 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
Jaech, J. L. (1985) Statistical Analysis of Measurement Errors. New York: Wiley.
ncb.od
,cb.pd
,pm2.5
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.