compute_BGe_score: Compute Bayesian Gaussian equivalent (BGe) score for a given...

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Compute Bayesian Gaussian equivalent (BGe) score for a given Bayesian network on given sufficient statistics from data.

Usage

1
compute_BGe_score(N, means, covmat, parents, alpha_w, nu_vec, alpha_mu = 1)

Arguments

N

Integer number of observations.

means

Numeric vector containing variable means.

covmat

Numeric covariance matrix.

parents

List of parents for each node to describe Bayesian network.

alpha_w

Numeric parameter of the covariance's Wishart prior (scale matrix).

nu_vec

Numeric parameter of the covariance's Wishart prior (degrees of freedom)

alpha_mu

Numeric parameter of the mean's Gaussian prior (expected value).

Details

For a better understanding of how the BGe score is obtained see the article [Geiger and Heckerman (2002)](https://projecteuclid.org/euclid.aos/1035844981) as well as the discussion in [Kuipers et al. (2014)](https://projecteuclid.org/euclid.aos/1407420013).

Value

Bayesian Gaussian equivalent (BGe) score for given data on the given Bayesian network.


igbucur/BFCS documentation built on Oct. 20, 2020, 7:39 a.m.