This class defines a node in an NPSEM
define_node(...)
... | Passes all arguments to the constructor. See documentation for the Constructor below. |
---|
R6Class
object.
tmle3_Node
object
make_tmle3_task(name, variables, parents = c(), variable_type = NULL)
name
character, the name of node
variables
character vector, the names of the variables that comprise the node
parents
character vector, the names of the parent nodes. If censoring, node is assumed to have no parents.
variable_type
variable_type
object, specifying the data type of this variable.
If censoring, variable_type will be guessed later from the data.
guess_variable_type(variable_data)
Guesses the variable_type
from the provided data.
This will be called by the tmle3_Task
constructor if no variable_type was provided.
variable_data
: the observed variable data.
name
character, the name of node
variables
character vector, the names of the variables that comprise the node
parents
character vector, the names of the parent nodes. If censoring, node is assumed to have no parents.
variable_type
variable_type
object, specifying the data type of this variable.