Learn R Programming

simMSM (version 1.1.2)

simto: Simulate New Final State.

Description

Simulation of the new final state for given entry time, inital state, all cause baseline hazard rates, transition specific covariate effect functions and transition specific values of the linear predictor.

Usage

simto(entry.ij, from.ij, mpl, eta.ij, x.i, diagnostics, max.time)

Arguments

entry.ij
current entry time
from.ij
current initial state
mpl
model parameter list.
eta.ij
transition specific values of the linear predictor.
x.i
vector of covariate values if indivdual i.
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

  • list including new final state.

Examples

Run this code
simto(entry.ij, from.ij, mpl, eta.ij, x.i, diagnostics, max.time)

Run the code above in your browser using DataLab