DW_nodelml {BCDAG}R Documentation

Compute node-marginal likelihoods of a DAG model (internal function)

Description

This function computes the log-marginal likelihood of the conditional distribution of variable node given its parents in DAG under a DAG-Wishart prior on the DAG model-parameters

Usage

DW_nodelml(node, DAG, tXX, n, a, U)

Arguments

node

numerical label of node in DAG

DAG

(q,q) adjacency matrix of DAG

tXX

(q,q) matrix X'X with X the (n,q) data matrix

n

number of observations (rows) in the data matrix X

a

shape hyperparameter of the DAG Wishart prior

U

position hyperparameter of the DAG Wishart prior

Value

The logarithm of the marginal likelihood of node


[Package BCDAG version 1.0.0 Index]