dgenRbinom | R Documentation |
Data generating process for biased binary outcome under treatment.
dgenRbinom(num.obs = 50, p = 0.3, q = 0.9, seed = 1)
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, |
q |
The probability of the outcome being 1 when treated, |
seed |
randomization seed; defaults to 1. |
a (num.obs x 2)
data frame where column 1 is the binary dependent variable Y
and column 2 is the treatment indicator D
dgenRbinom(num.obs=50, p=0.3, q=0.9, seed=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.