Function that simulates continuous variables. Any distribution function in R is supported.
sim_continuous2(
n,
dist = "rnorm",
var_level = 1,
variance = NULL,
ther_sim = FALSE,
ther_val = NULL,
ceiling = NULL,
floor = NULL,
...
)
A list of sample sizes.
A distribution function. This argument takes a quoted R distribution function (e.g. 'rnorm'). Default is 'rnorm'.
The level the variable should be simulated at. This can either be 1, 2, or 3 specifying a level 1, level 2, or level 3 variable respectively.
The variance for random effect simulation.
A TRUE/FALSE flag indicating whether the error simulation function should be simulated, that is should the mean and standard deviation used for standardization be simulated.
A vector of 2 that should include the theoretical mean and standard deviation of the generating function.
A numeric value that specifies the ceiling (maximum) of an attribute being generated. Defaults to NULL meaning no ceiling effect. If a value is specified, any data larger than integer is rounded to that ceiling value.
A numeric value that specifies the floor (minimum) of an attribute being generated. Defaults to NULL meaning no floor effect. If a value is specified, any data larger than integer is rounded to that floor value.
Additional parameters to pass to the dist_fun argument.