lrtest: Likelihood ratio tests for comparing nested cure models

View source: R/lrtest.cuRe.R

lrtestR 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.


cuRe documentation built on July 9, 2023, 7 p.m.

Related to lrtest in cuRe...