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)
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.
Individual identifier. Character, numeric or integer.
Vector, ignored for this model.
Integer, Maximum possible number of true cycles per tracked cycle.
Optional. True values for generated mean regression coefficients.
NULL, left for consistency. Will throw error if specified.
Average number of cycles contributed by each individual. Actual number is drawn from Poisson for each person. Default is 7.
skipTrack.simulate