Description Usage Arguments Value
View source: R/sim_fmsm_traj.R
Generate trajectories from a semi-Markov model built with flexsurv::flexsurvreg. The trajectories are simulate with flexsurv::sim.fmsm. The latter return the times of the transitions. This function determines the states M for each individual for each time given in an input vector.
1 | sim_fmsm_traj(..., tvec)
|
... |
arguments passed to sim.fmsm (exept t which is calculated from tvec) |
tvec |
a vector of times for which the states have to be determined |
a matrix of states, each row coresponds to an individual and each column to a time
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.