lrtest | R Documentation |
lrtest
carries out likelihood ratio tests to compare nested CLV models
of the same family that were fitted on the same transaction data.
The method compares each two consecutive models. An asymptotic likelihood ratio test is carried out: Twice the difference in log-likelihoods is compared with a Chi-squared distribution.
## S3 method for class 'clv.fitted'
lrtest(object, ..., name = NULL)
lrtest(object, ...)
## S4 method for signature 'clv.fitted'
lrtest(object, ..., name = NULL)
object |
An fitted model object inheriting from |
... |
Other models objects fitted on the same transaction data |
name |
A character vector of names to use for the models in the resulting output.
If given, a name has to be provided for |
A data.frame
of class "anova" which contains the log-likelihood,
degrees of freedom, the difference in degrees of freedom, likelihood ratio
Chi-squared statistic and corresponding p-value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.