Learn R Programming

penMSM (version 0.99)

dlpl: First derivative of the Log Partial Likelihood.

Description

Calculates the first partial derivative of the log partial likelihood with respect to the linear predictor.

Usage

dlpl(event, b, X, Ri, Ci)

Arguments

event
non-censoring event indicator.
b
vector of regression coefficients
X
design matrix
Ri
list of length n with vectors as list elements, with the i-th element being the riskset belonging to the i-th spell.
Ci
list of length n with vectors as list elements, with the i-th element capturing the indexes of risksets in which spell i is included.

Value

log partial likelihood with respect to the regression effects.

Details

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

Examples

Run this code
## Not run: dlpl(event, b, X, Ri, Ci)

Run the code above in your browser using DataLab