liSim {skipTrack} | 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)
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. |
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.