llcont: Getting partial log-likelihood of a 'coxph' object for...

Description Usage Arguments Details Value Author(s) Examples

View source: R/llcont.R

Description

Getting partial log-likelihood of a coxph object for individual cases

Usage

1
llcont(x)

Arguments

x

coxph model fitted with x=T

Details

ties are handled according to Efron

Value

a vector of individual likelihoods (sorted by increasing event times)

Author(s)

Thomas Hielscher

Examples

1
2
3
4
5
6
7
8
## Not run: 
### example data set from Fine paper, section 5
require("survival")
mod <- coxph(Surv(time, status==2) ~ age + log(albumin) + log(bili) + edema + log(protime), data=subset(pbc, !is.na(trt)),  x=T)
# individual LLs sum up to total model LL
sum(llcont(mod));logLik(mod)[1]

## End(Not run)

thomashielscher/nonnestcox documentation built on Dec. 14, 2020, 5:16 a.m.