stSim {skipTrack}R Documentation

Simulate user tracked menstrual cycle data for an individual, based on the skipTrack model.

Description

This function generates synthetic data for user tracked menstrual cycles for a single individual. For this model Beta_0 = log(30), Gamma_0 = 5.5, and phi = .01.

Usage

stSim(i, skipProb, maxCycles, trueBetas, trueGammas, overlap)

Arguments

i

Individual identifier. Character, numeric or integer.

skipProb

Vector of probabilities for number of true cycles per tracked cycle. For example, (.7, .2, .1) means that 70% of observed cycles will contain one true cycle, 20% will contain 2 true cycles and 10% will contain 3 true cycles.

maxCycles

Maximum number of true cycles per tracked cycle. Ignored for this model.

trueBetas

Optional. True values for the mean regression coefficients (not counting intercept which is automatic based on the model).

trueGammas

Optional. True values for the precision regression coefficients (not counting intercept which is automatic based on the model).

overlap

Optional. Number of (non-intercept) columns shared between X and Z. Columns are shared from left to right.

Value

'Individual'

Individual identifiers.

'TrackedCycles'

Tracked cycles.

'NumTrue'

Number of true values.

'LogMean'

Individual's mean of log(Y).

'LogPrec'

Individual's precision of log(Y)

'Beta0'

Beta0 true value.

'Gamma0'

Gamma0 true value.

'X0',...,'XN'

Covariate matrix for Mean, where N is the length of trueBetas.

'Z0',...,'ZM'

Covariate matrix for precision, where M is the length of trueGammas.

See Also

skipTrack.simulate


[Package skipTrack version 0.1.0 Index]