public final class BackdoorCriterion extends Object implements Identification, Validation
BackdoorInference
. The version of the 'Backdoor Criterion' used is complete, and sometimes referred to as just the 'adjustment criterion'.
Although the estimation can also be performed using Bayes Server, this criterion can also be used to identfy adjustment sets for use outside Bayes Server.
For more information see 'On the Validity of Covariate Adjustment for Estimating Causal Effects' - Shpitser et al 2012.
Constructor and Description |
---|
BackdoorCriterion(Network network)
Initializes a new instance of the
BackdoorCriterion class. |
Modifier and Type | Method and Description |
---|---|
Network |
getNetwork()
The Bayesian network on which the identification is based.
|
IdentificationOutput |
identify(Evidence evidence,
Distribution query,
IdentificationOptions options)
Determines how to quantify a cause-effect relationship (for a particular criterion), but does not perform the actual estimation.
|
IdentificationOutput |
identify(List<CausalNode> treatments,
List<CausalNode> outcomes,
List<CausalNode> nonTreatmentEvidence,
IdentificationOptions options)
Determines how to quantify a cause-effect relationship (for a particular criterion), but does not perform the actual estimation.
|
boolean |
isValid(Evidence evidence,
Distribution query,
ValidationOptions options)
Tests whether adjustment inputs are valid, without raising an exception.
|
boolean |
isValid(List<CausalNode> treatments,
List<CausalNode> outcomes,
List<CausalNode> nonTreatmentEvidence,
ValidationOptions options)
Tests whether adjustment inputs are valid, without raising an exception.
|
void |
validate(Evidence evidence,
Distribution query,
ValidationOptions options)
Tests whether adjustment inputs are valid, and throws an exception if not, with an error message.
|
void |
validate(List<CausalNode> treatments,
List<CausalNode> outcomes,
List<CausalNode> nonTreatmentEvidence,
ValidationOptions options)
Tests whether adjustment inputs are valid, and throws an exception if not, with an error message.
|
public BackdoorCriterion(Network network)
BackdoorCriterion
class.network
- The Bayesian network.public Network getNetwork()
getNetwork
in interface Identification
public void validate(Evidence evidence, Distribution query, ValidationOptions options)
validate
in interface Validation
evidence
- Evidence which contains both one or more interventions (treatments X), and optionally other standard (non-intervention) evidence.query
- One or more outcomes (effects) Y.options
- Other options that govern how the calculations are performed. Some options are common to all criterion, and some will have additional options specific to that criterion.public boolean isValid(Evidence evidence, Distribution query, ValidationOptions options)
com.bayesserver.causal.Validation#validate(IEvidence, IDistribution, IValidationOptions)
'Validate' to throw an exception which contains an error message.isValid
in interface Validation
evidence
- Evidence which contains both one or more interventions (treatments X), and optionally other standard (non-intervention) evidence.query
- One or more outcomes (effects) Y.options
- Other options that govern how the calculations are performed. Some options are common to all criterion, and some will have additional options specific to that criterion.true
if valid, false
otherwise.public IdentificationOutput identify(Evidence evidence, Distribution query, IdentificationOptions options)
identify
in interface Identification
evidence
- Evidence which contains both one or more interventions (treatments X), and optionally other standard (non-intervention) evidence.query
- One or more outcomes (effects), often denoted Y.options
- Other options that govern how the calculations are performed. Some options are common to all criterion, and some will have additional options specific to that criterion.public IdentificationOutput identify(List<CausalNode> treatments, List<CausalNode> outcomes, List<CausalNode> nonTreatmentEvidence, IdentificationOptions options)
identify
in interface Identification
treatments
- One or more treatments/interventions (X).outcomes
- One or more outcomes (effects), often denoted Y.nonTreatmentEvidence
- Any other evidence other than interventions.options
- Other options that govern how the calculations are performed. Some options are common to all criterion, and some will have additional options specific to that criterion.public void validate(List<CausalNode> treatments, List<CausalNode> outcomes, List<CausalNode> nonTreatmentEvidence, ValidationOptions options)
validate
in interface Validation
treatments
- One or more treatments/interventions (X).outcomes
- One or more outcomes (effects), often denoted Y.nonTreatmentEvidence
- Any non-treatment evidence.options
- Other options that govern how the calculations are performed. Some options are common to all criterion, and some will have additional options specific to that criterion.public boolean isValid(List<CausalNode> treatments, List<CausalNode> outcomes, List<CausalNode> nonTreatmentEvidence, ValidationOptions options)
com.bayesserver.causal.Validation#validate(IList{CausalNode}, IList{CausalNode}, IList{CausalNode}, IValidationOptions)
'Validate' to throw an exception which contains an error message.isValid
in interface Validation
treatments
- One or more treatments/interventions (X).outcomes
- One or more outcomes (effects), often denoted Y.nonTreatmentEvidence
- Any non-treatment evidence.options
- Other options that govern how the calculations are performed. Some options are common to all criterion, and some will have additional options specific to that criterion.true
if valid, false
otherwise.Copyright © 2023. All rights reserved.