lrtest | R Documentation |
Function for doing likelihood ratio tests for class cuRe
.
lrtest(model1, model2)
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. |
One of the models must be nested within the other model, and both models must be fitted to the same data set.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.