Generate data with a binary unmeasured confounder and binary outcome
gData_U_binary_Y_binary(
ymodel = "linear",
N = 500,
alpha_uz = 0.2,
beta_uy = 0.5,
treatment_effects = 1,
seed = 123
)A data frame with the simulated dataset with U binary, Y binary.
A string indicating the functional form of the outcome model.
The number of observations to be generated.
Unmeasured confounder coefficient in the propensity score model.
Unmeasured confounder coefficient in the outcome model.
The treatment effect.
The seed for the random number generator.