View source: R/search_greedy.R
search_greedy | R Documentation |
Search the optimal staged event tree with a greedy heuristic.
search_greedy(
data,
alg = stages_bhc,
search_criterion = BIC,
lambda = 0,
join_unobserved = TRUE,
...
)
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 |
The greedy approach implemented in this function
iteratively adds variables to the staged tree that
better improve the search_criterion
.
The estimated staged event tree model.
model <- search_greedy(Titanic, alg = stages_fbhc)
print(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.