pub struct BayesianSuiteContext<'a> {
pub estimator: &'a BayesianGComputationAte,
pub prepared: &'a PreparedBayesianProblem,
pub posterior: &'a CausalPosterior,
pub identification: IdentificationStatus,
pub workspace: &'a mut BayesianGCompWorkspace,
pub original_ate: f64,
pub ppc_alpha: f64,
}Expand description
Context required to run Bayesian PPC / prior-sensitivity validators.
Fields§
§estimator: &'a BayesianGComputationAteFitted Bayesian estimator configuration.
prepared: &'a PreparedBayesianProblemPrepared design used for the primary fit.
posterior: &'a CausalPosteriorPrimary posterior (used for posterior predictive).
identification: IdentificationStatusIdentification status passed to sensitivity refits.
workspace: &'a mut BayesianGCompWorkspaceWorkspace for sensitivity refits.
original_ate: f64Original effect estimate (ATE) for report comparison.
ppc_alpha: f64Two-sided α for predictive-check pass/fail (default 0.05).
Implementations§
Source§impl<'a> BayesianSuiteContext<'a>
impl<'a> BayesianSuiteContext<'a>
Sourcepub fn new(
estimator: &'a BayesianGComputationAte,
prepared: &'a PreparedBayesianProblem,
posterior: &'a CausalPosterior,
identification: IdentificationStatus,
workspace: &'a mut BayesianGCompWorkspace,
original_ate: f64,
) -> Self
pub fn new( estimator: &'a BayesianGComputationAte, prepared: &'a PreparedBayesianProblem, posterior: &'a CausalPosterior, identification: IdentificationStatus, workspace: &'a mut BayesianGCompWorkspace, original_ate: f64, ) -> Self
Build with default PPC α = 0.05.
Auto Trait Implementations§
impl<'a> !UnwindSafe for BayesianSuiteContext<'a>
impl<'a> Freeze for BayesianSuiteContext<'a>
impl<'a> RefUnwindSafe for BayesianSuiteContext<'a>
impl<'a> Send for BayesianSuiteContext<'a>
impl<'a> Sync for BayesianSuiteContext<'a>
impl<'a> Unpin for BayesianSuiteContext<'a>
impl<'a> UnsafeUnpin for BayesianSuiteContext<'a>
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more