DesignLibrary (version 0.1.0)

simple_two_arm_designer: Create a simple two arm design

Description

Builds a design with one treatment and one control arm. Treatment effects can be specified either by providing control_mean and treatment_mean or by specifying an ate.

Usage

simple_two_arm_designer(N = 100, prob = 0.5, control_mean = 0,
  control_sd = 1, ate = 1, treatment_mean = control_mean + ate,
  treatment_sd = control_sd, rho = 1)

Arguments

N

An integer. Sample size.

prob

A number in [0,1]. Probability of assignment to treatment.

control_mean

A number. Average outcome in control.

control_sd

A positive number. Standard deviation in control.

ate

A number. Average treatment effect.

treatment_mean

A number. Average outcome in treatment. Overrides ate if both specified.

treatment_sd

A non-negative number. Standard deviation in treatment. By default equals control_sd.

rho

A number in [-1,1]. Correlation between treatment and control outcomes.

Value

A simple two-arm design.

Details

Units are assigned to treatment using complete random assignment. Potential outcomes follow a normal distribution.

Examples

Run this code
# NOT RUN {
#Generate a simple two-arm design using default arguments
simple_two_arm_design <- simple_two_arm_designer()
# }

Run the code above in your browser using DataLab