lrtest carrys out likelihood ratio tests to compare nested CLV models.
The method consecutively compares the first model given in object with all the
other models passed in .... An asymptotic likelihood ratio test is carried out:
Twice the difference in log-likelihoods is compared with a Chi-squared distribution.
# S3 method for clv.fitted
lrtest(object, ..., name = NULL)lrtest(object, ...)
# S4 method for clv.fitted
lrtest(object, ..., name = NULL)
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.
An fitted model object inheriting from clv.fitted.
Other models objects fitted on the same transaction data
A character vector of names to use for the models in the resulting output.
If given, a name has to be provided for object and each model in ....
If not given, the default model names are used.