Builds a design with one treatment and one control arm.
Treatment effects can be specified either by providing
or by specifying a
two_arm_designer( N = 100, assignment_prob = 0.5, control_mean = 0, control_sd = 1, ate = 1, treatment_mean = control_mean + ate, treatment_sd = control_sd, rho = 1, args_to_fix = NULL )
An integer. Sample size.
A number in [0,1]. Probability of assignment to treatment.
A number. Average outcome in control.
A positive number. Standard deviation in control.
A number. Average treatment effect.
A number. Average outcome in treatment. Overrides
ate if both specified.
A nonnegative number. Standard deviation in treatment. By default equals
A number in [-1,1]. Correlation between treatment and control outcomes.
A character vector. Names of arguments to be args_to_fix in design.
A simple two-arm design.
Units are assigned to treatment using complete random assignment. Potential outcomes are normally distributed according to the mean and sd arguments.
# Generate a simple two-arm design using default arguments two_arm_design <- two_arm_designer()