Fill in Variable
fillInVariable.Rd
This function fills in a variable with simulated data based on the provided parameters.
Arguments
- name
The name of the variable.
- mu
A numeric value or a numeric vector (of length = level) representing the mean.
- sd
A numeric value representing the standard deviation, or NA if not applicable.
- level
A numeric value specifying the number of levels to simulate.
Examples
variable_data <- fillInVariable(name = "myVariable", mu = c(2, 3), sd = NA, level = 2)