Insert a degenerated one-dimensional probability distribution \(\pi\) over variable \(V\) such that \(\pi(V=val) == 1\) on the first position of respective generating sequence of the model.

# S3 method for Model
addIntervence(model, variable, value)

Arguments

model

compositional model

variable

variables name (\(V\))

value

value of the variable (\(V==val\))

Value

it is a method. It changes the input model

Examples

data(m) addIntervence(m, variable = "U", value = 1)
#> Error in addIntervence(m, variable = "U", value = 1): could not find function "addIntervence"