View source: R/get_nodal_types.R
get_nodal_types | R Documentation |
As type labels are hard to interpret for large models, the type list includes an attribute to help interpret them. See attr(types, interpret)
get_nodal_types(model, collapse = TRUE)
model |
A |
collapse |
Logical. If 'TRUE', shows unique nodal types for each node. If 'FALSE', shows for each node a matrix with nodal types as rows and parent types as columns, if applicable. Defaults to 'TRUE'. |
A named list
of nodal types for each parent in a DAG
model <- make_model('X -> K -> Y')
get_nodal_types(model)
model <- make_model('X -> K -> Y') %>%
set_restrictions(statement = 'K[X=1]>K[X=0]') %>%
set_confound(list(K = 'Y[K=1]>Y[K=0]'))
get_nodal_types(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.