Learn R Programming

penMSM (version 0.99)

lpl: Log Partial Likelihood.

Description

Calculates the log partial likelihood.

Usage

lpl(beta, X, risksetlist, event)

Arguments

beta
vector of regression coefficients.
X
design matrix.
risksetlist
list of length n with vectors as list elements, with the i-th element being the riskset belonging to the i-th spell.
event
non-censoring event indicator.

Value

Details

This function calculates the log partial likelihood of a Cox-type multistate model.

Examples

Run this code
## Not run: lpl(beta, X, risksetlist, event)

Run the code above in your browser using DataLab