source.data {RCTrep}R Documentation

A data set of simulated observational data, where outcome is continuous variable, treatment is a binary variable.

Description

A data set of simulated observational data, where outcome is continuous variable, treatment is a binary variable.

Usage

source.data

Format

## 'source.data' A data frame with 5000 rows and 8 variables:

x1

binary variable, x1 ~ rbinom(5000,1,0.2)

x2

binary variable, x2 ~ rbinom(5000,1,0.2)

x3

binary variable, x3 ~ rbinom(5000,1,0.8)

x4

binary variable, x4 ~ rbinom(5000,1,0.8)

x5

binary variable, x5 ~ rbinom(5000,1,0.7)

x6

binary variable, x6 ~ rbinom(5000,1,0.8)

z

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)

y

continuous variable indicating outcome, y ~ x1 + 6*x2+x6+2*z + rnorm(5000,0,1)


[Package RCTrep version 1.2.0 Index]