Return an updated staged event tree with one additional
variable at the end of the tree.
Usage
sevt_add(object, var, data, join_unobserved = TRUE, useNA = "ifany")
Value
An object of class sevt representing a
staged event tree model with var added as last variable.
Arguments
object
an object of class sevt.
var
character, the name of the new variable to be added.
data
either a data.frame or a table containing
the data from the variables in object plus var.
join_unobserved
logical, passed to full.
useNA
whether to include NA values in the tables.
Argument passed to table.
Details
This function update a staged event tree object with
an additional variable. The stages structure of the
new variable is initialized as in the saturated model.