The generated staged tree is obtained by randomly
joining stages with probability q
.
For random_sevt.list
, x
should be
a list representing an event tree, same format
as lists provided to sevt.list
.
The random generated sevt
will be
obtained by randomly joining stages starting from
a full staged event tree.
For random_sevt.parentslist
, x
should be
a parentslist
object
representing a DAG, this could be obtained with
as_parentslist
or with
random_parentslist
.
The random generated sevt
will be
obtained by randomly joining stages starting from
a the staged tree equivalent to the DAG.
For random_sevt.sevt
, x
should be
a sevt
.
The random generated sevt
will be
obtained by randomly joining stages starting
from the provided sevt object.
Stages (conditional) probabilities are sampled from
the corresponding probability simplex by generating
a vector with the user-defined function \code{rfun} and
normalizing it to sum up to one.
Absolute value is applied to assure non-negativity.
The default \code{rfun = rexp} induces a uniform sampling
from the probability simplex.