make_nodal_types: Make nodal types

View source: R/get_nodal_types.R

make_nodal_typesR Documentation

Make nodal types

Description

Make nodal types

Usage

make_nodal_types(model, include_node_names = FALSE)

Arguments

model

A causal_model. A model object generated by make_model.

include_node_names

Logical. If 'TRUE' returns names of form X0, X1; otherwise returns 0, 1. Defaults to 'FALSE'

Value

A named list containing nodal types for each node

Examples


model <- make_model('X -> K -> Y')
CausalQueries:::make_nodal_types(model)


CausalQueries documentation built on June 22, 2024, 6:50 p.m.