join positions in a staged tree model
join_positions(model, var, s1, s2)
an object of class sevt
.
the name of a variable in the model.
stage to join
stage to join
this functions works similarly to the join_stages
function in the stagedtrees
package, but it also joins
downstream stages to make nodes with stages s1,s2
in the same
position. This function works properly only when downstream variables
from var
have full stages vectors.