View source: R/stages_simplebhc.R
stages_simplebhc | R Documentation |
Greedy search of simple staged event trees with iterative joining of positions.
stages_simplebhc(
object,
score = function(x) {
return(-BIC(x))
},
scope = NULL,
max_iter = Inf,
ignore = object$name_unobserved
)
object |
an object of class |
score |
the score function to be maximized. |
scope |
names of variables that should be considered for the optimization. |
max_iter |
the maximum number of iterations per variable. |
ignore |
vector of stages which will be ignored and left untouched,
by default the name of the unobserved stages stored in
|
This function is similar to the classical
backward hill-climbing implemented in stages_bhc
, but
instead of joining stages it consider joining of positions via
join_positions
.
Thus, the search is in the space of simple staged tree models if the
initial stage tree is simple.
See the references for additional details.
an object of class sevt
, the simple staged tree resulting
from the search.
Leonelli M, Varando G. Structural Learning of Simple Staged Trees, arXiv preprint arXiv:2203.04390v1
join_positions()
sevt_simplify()
mod <- stages_simplebhc(full(Titanic))
plot(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.