Simulate dataset
sim_data(N = 100, Jmin = 1, Jmax = 6, tmin = 0, tmax = 5, norm = 2,
bin = 2, multi = 2, ord = 2, count = NULL, long = 2, coef = NULL,
misvar = NULL, nmisvar = 7, format = "long")
sample size (integer)
minimum number of repeated measurements in longitudinal variable
maximum number of repeated measurements in longitudinal variable
minimum of time variable
maximum of time variable
integer giving the number of normally distributed variables to create or list of parameters to create normally distributed variables from. If norm is an integer, the mean and standard deviation are drawn from distributions.
integer giving the number of binary variables or list
integer giving the number of multinomial variables or list
integer giving the number of ordinal variables or list
integer giving the number of ordinal variables or list (not yet used)
integer giving the number of longitudinal (normally distributed) variables or list containing parameters
vector of parameters used to create the outcome (optional), if NULL, the parameters are drawn from a normal distribution
vector of variable names or positions (??? check this) to specify which variables are incomplete
integer specifying the total number of incomplete variables, necessary when misvar is NULL and incomplete variables are chosen randomly
"long" or "wide" ("wide" not yet implemented)
The time variable has a uniform distribution between tmin and tmax. At the moment only the integer option is implemented for the parameters norm, bin, multi, etc.