likelihood.ratio.test | R Documentation |
Evaluates likelihood ratio test
Compares the goodness of fit of a null model (LO) against an alternative model (L1)
likelihood.ratio.test(L0, L1)
L0 |
null model likelihood |
L1 |
alternative model likelihood |
p value assessing the goodness of fit
Alessia Visconti
data(mtcars)
model0 <- lm(qsec ~ 1, data=mtcars)
model1 <- lm(qsec ~ cyl, data=mtcars)
likelihood.ratio.test(logLik(model0), logLik(model1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.