Learn R Programming

gamboostMSM (version 1.1.88)

buildrisksets: Calculation of risksets

Description

Calculates risksets needed for using family multistate.

Usage

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

Arguments

entry

a vector with entry times.

exit

a vector with exit times.

trans

a vector with transition types.

event

a vector with noncensoring event indicators.

statusinfo

a logical indicating if information on the calculation process should be printed.

Value

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

Details

This function calculates riksets needed for family multistate.