dgenRbinom: Data generating process for biased binary outcome under...

View source: R/dgenRbinom.R

dgenRbinomR Documentation

Data generating process for biased binary outcome under treatment.

Description

Data generating process for biased binary outcome under treatment.

Usage

dgenRbinom(num.obs = 50, p = 0.3, q = 0.9, seed = 1)

Arguments

num.obs

the number of observations to generate in the data set; defaults to 50 observations

p

The probability of the outcome being 1 when treated, Pr( Y = 1 | D = 0 ) ; defaults to 0.3

q

The probability of the outcome being 1 when treated, Pr( Y = 1 | D = 1 ) ; defaults to 0.9

seed

randomization seed; defaults to 1.

Value

a (num.obs x 2) data frame where column 1 is the binary dependent variable Y and column 2 is the treatment indicator D

Examples

dgenRbinom(num.obs=50, p=0.3, q=0.9, seed=1)

johnsontr/entmax documentation built on July 2, 2022, 9:23 p.m.