Learn R Programming

penMSM (version 0.99)

scorevectorP: Score vector of the Poisson log likelihood.

Description

This function calculates the score vector needed for the estimation of multistate models using the Fisher scoring algorithm.

Usage

scorevectorP(mu, X, event)

Arguments

mu
mu.
X
design matrix.
event
non-censoring event indicator.

Value

scorevector.

Details

This function implements the score vector (i.e., the first partial derivative of the Poisson log likelihood with respect to the components of the regression effect vector beta).

Examples

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

Run the code above in your browser using DataLab