- N
The sample size for the simulation. Include a vector of integers
to examine power/results for multiple sample sizes.
- k
The number of covariates/predictors.
- iter
The number of simulations to run. For power calculation,
should be at least 500 (yes, this will take some time).
- cores
The number of cores to use to parallelize the simulation.
- rho
The correlation (between -1 and 1) of the predictors k
.
- phi
Value of the dispersion parameter in the beta distribution.
- cutpoints
Value of the two cutpoints for the ordered model.
By default are the values -1 and +1 (these are interpreted in the
logit scale and so should not be too large). The farther apart,
the fewer degenerate (0 or 1) responses there will be in the distribution.
- beta_coef
If not null, a vector of length k
of the true
predictor coefficients/treatment values to use for the simulation.
Otherwise, coefficients are drawn from a random uniform distribution
from -1 to 1 for each predictor.
- beta_type
Can be either continuous
or binary
. Use the latter
for conventional treatments with two values.
- treat_assign
If beta_type
is set to binary
,
you can use this parameter to set the proportion
of N
assigned to treatment. By default,
the parameter is set to 0.5 for
equal/balanced treatment control groups.
- return_data
Whether to return the simulated dqta as a list
in the data
column of the returned data frame.
- seed
The seed to use to make the results reproducible. Set
automatically to a date-time stamp.
- ...
Any other arguments are passed on to the brms::brm function
to control modeling options.