Description Usage Arguments Value
Generates simulated latent data from initial,transition and lambda probabilities. Incorporated in GenerateSimulatedDataRaff()
1 | GenerateDataRaff(n, t, p, lambda)
|
n |
number of individuals to generate data for |
t |
number of visits to generate data for |
p |
probability of being a stayer in the healthy state for latent data |
lambda |
vector of length two, first value is weight given to value at time t-1, second value is weight given to value at time t-2 |
list of true data and vector of indicators for whether each individual is a stayer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.