interventions-set: set the list of interventions for an 'InferenceEngine'.

interventions<-R Documentation

set the list of interventions for an InferenceEngine.

Description

Add a list of interventions to an InferenceEngine, using a list composed by the two following vectors:

  • intervention.varsvector of the variables we manipulate;

  • intervention.valsvector of values for the variables in observed.vars in the corresponding position.

Usage

interventions(x) <- value

## S4 replacement method for signature 'InferenceEngine'
interventions(x) <- value

Arguments

x

an InferenceEngine.

value

the list of interventions of the InferenceEngine.

Details

An intervention can be applied only when building an InferenceEngine.

In case of multiple interventions of the same variable, the last intervention is the one used.


bnstruct documentation built on Dec. 1, 2022, 1:22 a.m.