Fit a causal two-arm Dirichlet process mixture without a GPD tail
dpmix.causal.Rddpmix.causal() fits a causal model with separate treated and control
outcome mixtures and, when requested, a propensity score block. It is the
bulk-only companion to dpmgpd.causal.
Usage
dpmix.causal(
y = NULL,
X = NULL,
treat = NULL,
data = NULL,
mcmc = list(),
formula = NULL,
...
)Arguments
- y
Either a response vector or a causal bundle object.
- X
Optional design matrix/data.frame.
- treat
Binary treatment indicator.
- data
Optional data.frame used with
formula.- mcmc
Named list of run arguments passed to
mcmc()(including optional performance controls such asparallel_arms,workers,timing, andz_update_every).- formula
Optional formula.
- ...
Additional build arguments passed to
build_causal_bundle.
Details
The resulting fit supports conditional outcome prediction
\(F_a(y \mid x)\) for \(a \in \{0,1\}\), followed by causal
functionals such as ate, qte,
cate, and cqte.