join_positions {stagedtrees} | R Documentation |
join positions in a staged tree model
Description
join positions in a staged tree model
Usage
join_positions(model, var, s1, s2)
Arguments
model |
an object of class |
var |
the name of a variable in the model. |
s1 |
stage to join |
s2 |
stage to join |
Details
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.
[Package stagedtrees version 2.3.0 Index]