logLikSort: Sort models according to loglikelihood.

View source: R/CHR.R

logLikSortR Documentation

Sort models according to loglikelihood.

Description

Sort models according to loglikelihood

Usage

logLikSort(formula, data)

Arguments

formula

a formula object, with the response on the left of a ~ operator, and the terms on the right. The response must be a survival object as returned by the Surv function. The RHS must contain a 'cluster' term.

data

a data.frame containing the variables in the model.

Details

it is mentioned in vignette("frailtyEM_manual") that the frailty with the highest loglikelihood should be prefered since all the models are special cases of the PVF frality family. This is done in a user-friendly way here.

Value

data.frame with loglikelihood for different models, sorted.

Author(s)

Jeppe E. H. Madsen <jeppe.ekstrand.halkjaer@gmail.com>

See Also

CHR autoplot.CHR

Examples

library(survival)
data("diabetic")
logLikSort(Surv(time,status) ~ cluster(id), data = diabetic)

Jeepen/biSurv documentation built on Sept. 30, 2023, 3:55 a.m.