search_greedy {stagedtrees} | R Documentation |
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,
...
)
Arguments
data |
either a data.frame or a table containing the data. |
alg |
a function that performs stages structure estimation. Similar to
|
search_criterion |
the criterion minimized in the order search. |
lambda |
numerical value passed to |
join_unobserved |
logical, passed to |
... |
additional arguments, passed to |
Details
The greedy approach implemented in this function
iteratively adds variables to the staged tree that
better improve the search_criterion
.
Value
The estimated staged event tree model.
Examples
model <- search_greedy(Titanic, alg = stages_fbhc)
print(model)
[Package stagedtrees version 2.3.0 Index]