Learn R Programming

simMSM (version 1.1.2)

simsinglehistory: Simulation of Single Event Histories.

Description

Simulates event history for one individual i.

Usage

simsinglehistory(first.entry = 0, first.from, max.time, change.times, mpl, 
x.i, diagnostics)

Arguments

first.entry
first entry time
first.from
first initial state
max.time
maximum entry time
change.times
vector giving the times of change of the time-change covariates
mpl
model parameter list.
x.i
vector of covariate values if indivdual i.
diagnostics
logical ...

Value

  • A matrix that contains the individual event history.

Examples

Run this code
simsinglehistory(simsinglehistory(first.entry = 0, first.from, 
max.time, change.times, mpl, x.i, diagnostics)

Run the code above in your browser using DataLab