Learn R Programming

BNPMediation (version 0.1.0)

OutSamples: Posterior Samples of the Outcomes

Description

Obtain posterior samples of the outcomes, E[Y1] and E[Y0].

Usage

OutSamples(obj1, obj0, q)

Arguments

obj1

The observed data under Z=1

obj0

The observed data under Z=0

q

A dimension of the observed data, i.e., number of covariates plus 2

Value

Y1 Posterior samples of E[Y1]

Y0 Posterior samples of E[Y0]

TMean The posterior mean of the total effect

TCI 95% C.I. of the total effect