public final class EffectsAnalysis extends Object
Modifier and Type | Method and Description |
---|---|
static EffectsAnalysisOutput |
calculate(Variable treatment,
Variable outcome,
CausalEffectKind effect,
Evidence fixedEvidence,
InferenceFactory factory,
EffectsAnalysisOptions options)
Calculate the causal effect on a target, varying for different treatment values.
|
public static EffectsAnalysisOutput calculate(Variable treatment, Variable outcome, CausalEffectKind effect, Evidence fixedEvidence, InferenceFactory factory, EffectsAnalysisOptions options) throws InconsistentEvidenceException
treatment
- The treatment (cause) to vary.outcome
- The outome (target) on which the effect is measured.effect
- The causal effect kind, e.g.Total or Direct.fixedEvidence
- Optional evidence on other variables (other than the outcome or treatment variables).factory
- A factory instance to create on or more inference engines to perform the calculations.options
- Options affecting the calculations.InconsistentEvidenceException
Copyright © 2023. All rights reserved.