get_event_prob {CausalQueries}R Documentation

Draw event probabilities

Description

Draw event probabilities

Usage

get_event_prob(model, P = NULL, A = NULL, parameters = NULL, type_prob = NULL)

Arguments

model

A causal_model. A model object generated by make_model.

P

A data.frame. Parameter matrix. Not required but may be provided to avoid repeated computation for simulations.

A

A data.frame. Ambiguity matrix. Not required but may be provided to avoid repeated computation for simulations.

parameters

A vector of real numbers in [0,1]. Values of parameters to specify (optional). By default, parameters is drawn from model$parameters_df.

type_prob

A numeric vector. Type probabilities. (Not required).

Value

An array of event probabilities

Examples


model <- make_model('X -> Y')
get_event_prob(model = model)
get_event_prob(model = model, parameters = rep(1, 6))
get_event_prob(model = model, parameters = 1:6)


[Package CausalQueries version 0.0.3 Index]