Define a Node (set of variables) in an NPSEM

define_node(name, variables, parents = c(), variable_type = NULL)

Arguments

name

A character, the name of node

variables

A character vector of the variables that comprise the node

parents

A character vector of the names of the parent nodes. If missing, node is assumed to have no parents.

variable_type

A sl3 variable_type object specifying the data type of this variable. If missing, variable_type is guessed from the data