make_sample_data: Make sample data

Description Usage Arguments Examples

View source: R/make_sample_data.R

Description

Makes a simple data frame with treat (binary), outcome (binary), and five covariates: X1 (continuous), X2 (continuous), B1 (binary), B2 (binary), and C1 (categorical). Probability outcome = 1 is sigmoid(treat + X1). Probability treatment = 1 is sigmoid(- 0.2 * X1 + X2 - B1 + 2 * B2)

Usage

1

Arguments

n

the size of the desired data set

Examples

1
2
# make sample data set of 30 observations
dat <- make_sample_data(n = 30)

raikens1/stratamatch documentation built on May 27, 2021, 10:13 p.m.