View source: R/get_event_prob.R
get_event_probabilities | R Documentation |
'get_event_probabilities' draws event probability vector 'w' given a single realization of parameters
get_event_probabilities(
model,
parameters = NULL,
A = NULL,
P = NULL,
given = NULL
)
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" |
An array of event probabilities
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.