Function for doing likelihood ratio tests for class cuRe
.
lrtest(model1, model2)
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.
A model fitted by the fit.cure.model or the GenFlexCureModel function
Another model fitted by the fit.cure.model or the GenFlexCureModel function for comparison.
One of the models must be nested within the other model, and both models must be fitted to the same data set.