llratio {qpcR} | R Documentation |
Calculation of likelihood ratios for nested models
Description
Calculates the likelihood ratio and p-value from a chi-square distribution for two nested models.
Usage
llratio(objX, objY)
Arguments
objX |
Either a value of class |
objY |
Either a value of class |
Details
The likelihood ratio statistic is
The usual test statistic is
Following the large sample theory, if is true, then
Value
A list containing the following items:
ratio |
the likelihood ratio statistic. |
df |
the change in parameters. |
p.value |
the p-value from a |
Author(s)
Andrej-Nikolai Spiess
See Also
Examples
## Compare l5 and l4 model.
m1 <- pcrfit(reps, 1, 2, l5)
m2 <- pcrfit(reps, 1, 2, l4)
llratio(m1, m2)
[Package qpcR version 1.4-1 Index]