Description Usage Arguments Details Value Author(s) See Also Examples
Calculates the likelihood ratio and p-value from a chi-square distribution for two nested models.
1 | llratio(objX, objY)
|
objX |
Either a value of class |
objY |
Either a value of class |
The likelihood ratio statistic is
LR = \frac{f(X, \hat{φ}, \hat{ψ})}{f(X, φ, \hat{ψ_0})}
The usual test statistic is
Λ = 2 \cdot (l(\hat{φ}, \hat{ψ}) - l(φ, \hat{ψ_0}))
Following the large sample theory, if H_0 is true, then
Λ \sim χ_p^2
A list containing the following items:
ratio |
the likelihood ratio statistic. |
df |
the change in parameters. |
p.value |
the p-value from a χ^2 distribution. See Details. |
Andrej-Nikolai Spiess
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.