logLikSort | R Documentation |
Sort models according to loglikelihood
logLikSort(formula, data)
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 |
data |
a data.frame containing the variables in the model. |
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.
data.frame with loglikelihood for different models, sorted.
Jeppe E. H. Madsen <jeppe.ekstrand.halkjaer@gmail.com>
CHR autoplot.CHR
library(survival)
data("diabetic")
logLikSort(Surv(time,status) ~ cluster(id), data = diabetic)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.