Package com.bayesserver.causal
Class EffectsAnalysis
- java.lang.Object
-
- com.bayesserver.causal.EffectsAnalysis
-
public final class EffectsAnalysis extends Object
Calculates the causal effect on a target, varying for different treatment values.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EffectsAnalysisOutputcalculate(Variable treatment, Variable outcome, CausalEffectKind effect, Evidence fixedEvidence, InferenceFactory factory, EffectsAnalysisOptions options)Calculate the causal effect on a target, varying for different treatment values.
-
-
-
Method Detail
-
calculate
public static EffectsAnalysisOutput calculate(Variable treatment, Variable outcome, CausalEffectKind effect, Evidence fixedEvidence, InferenceFactory factory, EffectsAnalysisOptions options) throws InconsistentEvidenceException
Calculate the causal effect on a target, varying for different treatment values.- Parameters:
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.- Returns:
- Cause effect information for each treatment value.
- Throws:
InconsistentEvidenceException
-
-