buildrisksets function

Calculation of risksets needed for partial likelihood formulation of multistate models.

Calculation of risksets needed for partial likelihood formulation of multistate models.

This function calculates the risksets needed to calculate the partial likelihood of a multistate model, and/or it's derivatives.

buildrisksets(entry, exit, trans, event, trace)

Arguments

  • entry: vector with entry times.
  • exit: vector with exit times.
  • trans: vector with transition types.
  • event: vector with noncensoring event indicators.
  • trace: logical triggering printout of status information during the fitting process.

Details

This function calculates risksets.

Returns

A list of length 2 with elements Ci and Ri, each vectors of length n.

Author(s)

Holger Reulen

  • Maintainer: Holger Reulen
  • License: GPL (>= 2)
  • Last published: 2015-01-12

Useful links