scorevector function

Score vector of the log partial likelihood of a multistate model.

Score vector of the log partial likelihood of a multistate model.

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

scorevector(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.

Details

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

Returns

Score vector scorevector.

Author(s)

Holger Reulen

Examples

## Not run: scorevector(beta, X, risksetlist, event)
  • Maintainer: Holger Reulen
  • License: GPL (>= 2)
  • Last published: 2015-01-12

Useful links