View source: R/3-inference-functions.R
path_probability | R Documentation |
Internal function to compute probability of a path. It does not check the validity of the path.
path_probability(object, x, log = FALSE)
object |
An object of class |
x |
the path, expressed as a character vector containing the sequence of the value of the variables. |
log |
logical, if |
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.
The probability of the given path or its logarithm if log=TRUE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.