Description Usage Arguments Value
Generate trajectories from the simulations generated by flexsurv::sim.fmsm for a semi-Markov model built with flexsurv::flexsurvreg. The function flexsurv::sim.fmsm returns the times of the transitions. This function determines each time given in the vector tvec.
1 | sim_to_traj(sim, tvec)
|
sim |
output of flexsurv::sim.fmsm |
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.