lrtest {cuRe} | R Documentation |
Likelihood ratio tests for comparing nested cure models
Description
Function for doing likelihood ratio tests for class cuRe
.
Usage
lrtest(model1, model2)
Arguments
model1 |
A model fitted by the fit.cure.model or the GenFlexCureModel function |
model2 |
Another model fitted by the fit.cure.model or the GenFlexCureModel function for comparison. |
Details
One of the models must be nested within the other model, and both models must be fitted to the same data set.
Value
An object of class "anova" containing the degrees of freedom and log-likelihoods of the two models, the difference in degrees of freedom, the likelihood ratio Chi-squared statistic (twice the difference in log-likelihoods) , and the p-value for the asymptotic likelihood ratio test.
[Package cuRe version 1.1.1 Index]