search_greedy: Greedy Order Search
Description
Search the optimal staged event tree
with a greedy heuristic.
Usage
search_greedy(
data,
alg = stages_bhc,
search_criterion = BIC,
lambda = 0,
join_unobserved = TRUE,
...
)
Value
The estimated staged event tree model.
Arguments
- data
either a data.frame or a table containing the data.
- alg
a function that performs stages structure estimation. Similar to
stages_bhc
or stages_hclust
.
The function alg
must accept the argument
scope
.
- search_criterion
the criterion minimized in the order search.
- lambda
numerical value passed to full
.
- join_unobserved
logical, passed to full
.
- ...
additional arguments, passed to alg
.
Details
The greedy approach implemented in this function
iteratively adds variables to the staged tree that
better improve the search_criterion
.
Examples
Run this codemodel <- search_greedy(Titanic, alg = stages_fbhc)
print(model)
Run the code above in your browser using DataLab