powered by
Extract subtree
subtree(object, path)
an object of class sevt.
sevt
the path from root after which extract the subtree.
A staged event tree object corresponding to the subtree.
Returns the subtree of the staged event tree, starting from path.
path
# NOT RUN { DD <- generate_random_dataset(4, 100) model <- sevt(DD, full = TRUE) plot(model) model1 <- subtree(model, path = c("-1", "1")) plot(model1) # }
Run the code above in your browser using DataLab