Simulated_data {ATE.ERROR}R Documentation

Simulated Data

Description

A dataset containing simulated data generated by the generate_data function. This data includes misclassified outcome Y*, treatment assignment T, and covariates X and Z.

Usage

Simulated_data

Format

A data frame with 5000 rows and 6 variables:

X

a numeric vector generated from a standard normal distribution (mean = 0, standard deviation = 1)

X_star

a numeric vector where X_star is equal to X plus a random error. The random error is generated from a normal distribution with mean 0 and standard deviation 0.1

Y

a numeric vector generated from a Bernoulli distribution with a probability depending on T, Z, and X

Y_star

a numeric vector where Y_star is generated from a binomial distribution depending on Y with probabilities 0.8 if Y equals 1 and 0.2 if Y equals 0

T

a numeric vector generated from a binomial distribution with probability calculated using the logistic function of the sum of 0.2, Z, and X

Z

a numeric vector generated from a standard normal distribution (mean = 0, standard deviation = 1)

Source

Shu D, Yi GY (2019). Weighted causal inference methods with mismeasured covariates and misclassified outcomes. Statistics in Medicine. 38:1835-1854. doi:10.1002/sim.8073


[Package ATE.ERROR version 1.0.0 Index]