generate_data_dl: Generate data for compliance using the Ding and Lu model.

Description Usage Arguments Value Examples

View source: R/generate_data_dl.R

Description

Generate data for compliance using the Ding and Lu model.

Usage

1
generate_data_dl(n = 500, theta)

Arguments

n

sample size

theta

paramater controlling the violation of principal ignorability

Value

data.frame including id, covariate x, randomization indicator z, complier indicator c, treatment receipt indicator s, and outcome y.

Examples

1
generate_data_dl(n = 500, theta = 1)

denisagniel/synthate documentation built on April 16, 2020, 12:45 a.m.