Learn R Programming

simMSM (version 1.1.2)

simexit: Simulate New Exit Time.

Description

Simulates new exit time using all cause hazard functions.

Usage

simexit(entry, all.bhr, eta.ij, x.i, diagnostics, max.time)

Arguments

entry
entry time
all.bhr
list containing all cause specific baseline hazard functions
eta.ij
list containing transition type specific linear predictor functions
x.i
vector of covariate values
diagnostics
logical triggering whether diagnostics about errors (most likeliy because uniroot does not find a root) should be printed during the simulation process?
max.time
maximum entry time

Value

  • New exit time

Details

Functions begins with drawing a quantile from the uniform distribution ehich will be used in the inversion sampling algorithm for event times.

Examples

Run this code
simexit(entry, all.bhr, eta.ij, x.i, diagnostics, max.time)

Run the code above in your browser using DataLab