Internal function to compute probability of a path. It does not check the validity of the path.
path_probability(object, x, log = FALSE)
An object of class sevt
.
the path, expressed as a character vector containing the sequence of the value of the variables.
logical, if TRUE
log-probability is returned.
The probability of the given path or its logarithm if log=TRUE
.
Computes the probability of following a given path (x
) starting from the root.
Can be a full path from the root to a leaf or a shorter path.