| spbn_loglik | R Documentation |
Evaluates log f(x_i | pa_i) for every observation and node of
an spbn() model.
spbn_loglik(model, data)
model |
An |
data |
A data frame or matrix with the model's variables. |
A matrix with one row per observation and one column per node.
set.seed(1)
x <- data.frame(a = stats::rnorm(200), b = stats::rnorm(200))
head(spbn_loglik(spbn(x), x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.