- X
A vector of observed values for the exposure.
- Y
A vector of observed values for the outcome.
- U
A matrix of observed values for the M
potential confounding covariates, where each column contains observed values for a potential confounding factor. A recommended implementation is to only consider pre-exposure covariates.
- omega
The value of the hyperparameter omega in the BCEE's outcome model prior distribution. A recommended implementation is to take omega
=
sqrt(n)*c
, where n
is the sample size and c
is a user-supplied constant value. Simulation studies suggest that values of c
between 100 and 1000 yield good results.
- niter
The number of iterations in the Markov chain Monte Carlo model composition (MC^3) algorithm (Madigan et al. 1995). The default is 5000, but larger values are recommended when the number of potential confounding covariates is large.
- family.X
Distribution to be used for the exposure model. This should be "gaussian"
if the exposure is continuous or "binomial"
if the exposure is binary. The default is "gaussian"
.
- family.Y
Distribution to be used for the outcome model. This should be "gaussian"
if the outcome is continuous or "binomial"
if the outcome is binary. The default is "gaussian"
.
- X1
The value of \(X1\) for contrasts comparing \(E[Y^{X1}]\) to \(E[Y^{X0}]\).
- X0
The value of \(X0\) for contrasts comparing \(E[Y^{X1}]\) to \(E[Y^{X0}]\).
- priorX
A vector of length M
for the prior probability of inclusion of the potential confounding covariates in the exposure model (\(P(\alpha^X)\)). The default is 0.5 for all covariates.
- priorY
A vector of length M
for the prior probability of inclusion of the potential confounding covariates in the outcome model. This vector multiplies BCEE's informative prior distribution (\(P(\alpha^Y)\)). The default is 0.5 for all covariates.
- maxsize
The maximum number of covariates that can be included in a given exposure or outcome model. The default is M
, which does not constrain the models' size.
- OR
A number specifying the maximum ratio for excluding models in Occam's window for the outcome modeling step. All outcome models whose posterior probability is more than OR
times smaller than the largest posterior probability are excluded from the model averaging. The posterior mass of discarded models is redistributed on the remaining models. See Madigan & Raftery, 1994. The default is 20.
- truncation
A vector of length 2 indicating the smallest and largest values for the estimated propensity score (\(P(X = 1|U)\)). Values outside those bounds are truncated to the bounds. Some truncation can help reduce the impact of near positivity violations. The default is c(0.01, 0.99)
. Currently, no truncation is performed when family.X = "gaussian"
and family.Y = "gaussian"
.
- var.comp
The method for computing the variance of the targeted maximum likelihood estimators in the BCEE algorithm. The possible values are "asymptotic"
, for the efficient influence function based estimator, and "boostrap"
for the nonparametric bootstrap estimator. The default is "asymptotic"
.
- B
The number of bootstrap samples when estimating the variance using the nonparametric bootstrap. The default is 200.
- nsampX
The number of samples to take from the exposure distribution for the Monte Carlo integration when X is continuous and Y is binary. The default is 30.