scoreParentsTable: Score a node-level parentsTable.

Description Usage Arguments Value See Also

View source: R/parents-table.R

Description

Computes the scores of all the Bayesian Networks, with parent sets corresponding to each row of a single component of a parentsTable.

Usage

1
2
  scoreParentsTable(parentsTables, logScoreLocalFUN,
    logScoreParameters, prior, verbose = F)

Arguments

parentsTables

A component of a parentsTables, of the form created by enumerateParentsTable().

logScoreLocalFUN

A function that computes the local logScore of a Bayesian Network.

logScoreParameters

A list of parameters that are passed to logScoreFUN.

loalPriors

A list of functions of the same length as the number of nodes that returns the local prior score of the corresponding node, given a numeric vector of parents.

verbose

A logical of length 1, indicating whether verbose output should be printed.

Value

List of numeric vectors of scores.

See Also

scoreParentsTableNode, enumerateParentsTable, whichParentSetRows, getRowsThatContain


rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.