get_event_probabilities {CausalQueries} | R Documentation |
Draw event probabilities
Description
'get_event_probabilities' draws event probability vector 'w' given a single realization of parameters
Usage
get_event_probabilities(
model,
parameters = NULL,
A = NULL,
P = NULL,
given = NULL
)
Arguments
model |
A |
parameters |
A vector of real numbers in [0,1]. Values of parameters to
specify (optional). By default, parameters is drawn from
|
A |
A |
P |
A |
given |
A string specifying known values on nodes, e.g. "X==1 & Y==1" |
Value
An array of event probabilities
Examples
model <- make_model('X -> Y')
get_event_probabilities(model = model)
get_event_probabilities(model = model, given = "X==1")
get_event_probabilities(model = model, parameters = rep(1, 6))
get_event_probabilities(model = model, parameters = 1:6)
[Package CausalQueries version 1.1.1 Index]