Description Usage Arguments Value Note Author(s) Examples
Never have to remember which way to subtract again!
1 | logliktest(likfit1, likfit2)
|
likfit1 |
The first model returned from likfit |
likfit1 |
The second model returned from likfit. It doesn't matter which is which. |
The p-value from the associated likelihood ratio test
Don't even think about using non-nested models, or the wrath of Dr. Barry will haunt you for the rest of your days.
Matt Tyers
1 2 3 4 5 6 | data(lnLa)
model1 <- likfit(lnLa,cov.model="exponential",ini.cov.pars=c(1,18))
model2 <- likfit(lnLa,cov.model="exponential",ini.cov.pars=c(1,18),trend="1st")
logliktest(model1,model2)
logliktest(model2,model1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.