source.data | R Documentation |
A data set of simulated observational data, where outcome is continuous variable, treatment is a binary variable.
source.data
## 'source.data' A data frame with 5000 rows and 8 variables:
binary variable, x1 ~ rbinom(5000,1,0.2)
binary variable, x2 ~ rbinom(5000,1,0.2)
binary variable, x3 ~ rbinom(5000,1,0.8)
binary variable, x4 ~ rbinom(5000,1,0.8)
binary variable, x5 ~ rbinom(5000,1,0.7)
binary variable, x6 ~ rbinom(5000,1,0.8)
binary variable indicating treatment and control. pp = x1*x2+x3*x4+5*x5+x6, p(z=1) = p = 1/(1+e^-(pp-mean(pp))/sd(pp)*sqrt(3)/pi), z ~ rbinom(5000,1,p)
continuous variable indicating outcome, y ~ x1 + 6*x2+x6+2*z + rnorm(5000,0,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.