Skip to contents

Update causal types based on nodal types

Usage

update_causal_types(model, restrict_given = NULL)

Arguments

model

A causal_model. A model object generated by make_model.

restrict_given

a character vector of subsetting instructions for rows to be dropped from causal types data.frame.

Value

A data.frame containing updated causal types in a model

Examples

CausalQueries:::update_causal_types(make_model('X->Y'))
#> 
#> Causal Types: 
#> cartesian product of nodal types
#> 
#>        X  Y
#> X0.Y00 0 00
#> X1.Y00 1 00
#> X0.Y10 0 10
#> X1.Y10 1 10
#> X0.Y01 0 01
#> X1.Y01 1 01
#> X0.Y11 0 11
#> X1.Y11 1 11