Learn R Programming

DesignLibrary (version 2.0.0)

two_arm_attrition_designer: Create a two-arm design with attrition

Description

Routes to make_design() with id "two_arm_attrition": make_design("two_arm_attrition", N = N, a_R = a_R, ...).

Usage

two_arm_attrition_designer(
  N = 100,
  a_R = 0,
  b_R = 1,
  a_Y = 0,
  b_Y = 1,
  rho = 0,
  args_to_fix = NULL
)

Value

A design object.

Arguments

N

Sample size.

a_R

Constant in the equation relating treatment to reporting.

b_R

Slope relating treatment to reporting.

a_Y

Constant in the equation relating treatment to the outcome.

b_Y

Slope relating treatment to the outcome.

rho

Correlation between reporting and outcome shocks (0 to 1).

args_to_fix

Ignored. Present for compatibility with DesignLibrary 0.1.

See Also

make_design()

Examples

Run this code
two_arm_attrition_designer(N = 40, b_R = 0.5)

Run the code above in your browser using DataLab