R/likelihood.R

Defines functions loglikelihood

# compute the log-likelihood of some data for a given network.
loglikelihood = function(fitted, data, by.sample = FALSE, keep = names(fitted),
    propagate.missing = FALSE, debug = FALSE) {

  .Call(call_loglikelihood_function,
        fitted = fitted,
        data = data,
        by.sample = by.sample,
        keep.nodes = keep,
        propagate.missing = propagate.missing,
        debug = debug)

}#LOGLIKELIHOOD

Try the bnlearn package in your browser

Any scripts or data that you put into this service are public.

bnlearn documentation built on Sept. 8, 2023, 5:46 p.m.