bacps: Bayesian Adjustment for Confounding

Description Usage Arguments Value

View source: R/bacps.R

Description

Main Algorithm that performs Bayesian Adjusting for confounding carrying out 1st and 2nd stage.

Usage

1
bacps(w, x, y, U, niter_1st, niter_2nd, burnin_1st, burnin_2nd)

Arguments

w

a data.frame with at least the following variables:

x

a matrix with the exposure (binary) variable

y

a matrix with the response (binary) variable

U

a data frame with the covariates

niter_1st

iteration MCMC for the 1st stage

niter_2nd

iteration MCMC for the 2nd stage

burnin_1st

burn-in MCMC for the 2nd stage

burnin_2nd

burn-in MCMC for the 2nd stage

Value

a list


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