make_sample_data: Make sample data

View source: R/make_sample_data.R

make_sample_dataR Documentation

Make sample data

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

make_sample_data(n = 100)

Arguments

n

the size of the desired data set

Examples

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

raikens1/stratamatch documentation built on April 1, 2022, 9:48 p.m.