| lrt | R Documentation |
Computes the likelihood ratio test statistic and p-value for nested models.
lrt(null, alt, data, null_par, alt_par, dof = NULL, ...)
null |
the likelihood model for the simpler (null) hypothesis nested within the alternative model |
alt |
the likelihood model for the more complicated (alternative) hypothesis |
data |
a data frame |
null_par |
parameter values under the null model |
alt_par |
parameter values under the alternative model |
dof |
degrees of freedom (computed automatically if NULL) |
... |
additional arguments passed to loglik |
An lrt_result object with components stat, p.value, and dof
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.