sim_data: Simulated data

Description Usage Arguments Value

View source: R/sim_data.R

Description

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)

Usage

1

Arguments

N

sample size

beta

exposure marginal effect on outcome

Value

a list with outcome y,exposure x and covariates U


pablogonzalezginestet/BACps documentation built on Dec. 22, 2021, 5:22 a.m.