View source: R/1b-base-model-function.R
join_stages | R Documentation |
Join two stages in a staged event tree object, updating probabilities and log-likelihood accordingly.
join_stages(object, v, s1, s2)
object |
an object of class |
v |
variable. |
s1 |
first stage. |
s2 |
second stage. |
This function joins two stages associated to the same variable, updating probabilities and log-likelihood if the object was fitted.
the staged event tree where s1
and s2
are joined.
model <- full(PhDArticles, lambda = 0) model <- stages_fbhc(model) model$stages$Kids model <- join_stages(model, "Kids", "5", "6") model$stages$Kids
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.