generate_2State | R Documentation |
Generate individuals such that each individual starts at time 0 with state 0 and then an unique change
to state 1 occurs at a time t
generated using an uniform law between 0 and 1.
generate_2State(n)
n |
number of individuals |
a data.frame with 3 columns: id
, id of the trajectory, time
, time at which a change occurs and
state
, new state.
Cristian Preda, Quentin Grimonprez
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.