Learn R Programming

CausalQueries (version 0.0.3)

set_ambiguities_matrix: Set ambiguity matrix

Description

Add an ambiguities matrix to a model

Usage

set_ambiguities_matrix(model, A = NULL)

Arguments

model

A causal_model. A model object generated by make_model.

A

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

Value

An object of type causal_model with the ambiguities matrix attached

Examples

Run this code
# NOT RUN {
model <- make_model('X -> Y') %>%
         set_ambiguities_matrix()
model$A
# }

Run the code above in your browser using DataLab