View source: R/4-model-selection.R
stages_bhcr | R Documentation |
Randomly try to join stages. This is a pretty-useless function, used for comparisons.
stages_bhcr( object, score = function(x) { return(-BIC(x)) }, max_iter = 100, trace = 0 )
object |
an object of class |
score |
the score function to be maximized. |
max_iter |
the maximum number of iteration. |
trace |
if >0 increasingly amount of info
is printed (via |
At each iteration a variable and
two of its stages are randomly selected.
If joining the stages increases the score, the model is
updated. The procedure is repeated until the
number of iterations reaches max_iter
.
an object of class sevt
.
DD <- generate_xor_dataset(n = 4, N = 100) model <- stages_bhcr(full(DD), trace = 2) summary(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.