liSim | R Documentation |
This function generates synthetic data for user tracked menstrual cycles for a single individual using the li model. For this model Beta0 = log(30), and Gamma0 doesn't really make sense.
liSim(i, skipProb, maxCycles, trueBetas, trueGammas = NULL, avgCyclesPer)
i |
Individual identifier. Character, numeric or integer. |
skipProb |
Vector, ignored for this model. |
maxCycles |
Integer, Maximum possible number of true cycles per tracked cycle. |
trueBetas |
Optional. True values for generated mean regression coefficients. |
trueGammas |
NULL, left for consistency. Will throw error if specified. |
avgCyclesPer |
Average number of cycles contributed by each individual. Actual number is drawn from Poisson for each person. Default is 7. |
Individual identifiers.
Tracked cycles.
Number of true values.
Individual's probability of skipping tracking a cycle
Individual's mean values.
Beta0 true value.
NA
1
Covariate matrix for Mean, where N is the length of trueBetas.
skipTrack.simulate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.