compare_nested: Compare nested models

Description Usage Arguments Value

Description

Performs partial likelihood ratio test for cox regression objects using evaluated log partial likelihoods from the full and nested models to determine if the inclusion of additional predictors in the model is necessary. This function only works for coxph fits.

Usage

1
compare_nested(full_model, reduced_model)

Arguments

full_model

Cox regression object (from the function, coxph) for the full model.

reduced_model

Cox Regression object for the reduced model.

Value

data frame with the statistic, degrees of freedom and p-value.


loshita/oshitar documentation built on May 8, 2019, 11:12 p.m.