sim_data.Rd
Function that generates simulated data with five covariates: three confounders,one instrumental variable and one predictor of the outcome (scenario from the paper of Wang)
sim_data(N, beta)
N | sample size |
---|---|
beta | exposure marginal effect on outcome |
a list with outcome y,exposure x and covariates U