ep.parental.contingency: Posterior edge probabilities.

Description Usage Arguments Value See Also

View source: R/post.R

Description

Computes the edge probabilities from a parental.contingency, which is a list, whose first component is parental.list, and whose second component is a contingency table of counts of the corresponding element of the parental.list. The contingency table must simply be a numeric vector. The first component must be named parental.list, and the second contingency.

Usage

1
2
3
  ## S3 method for class 'parental.contingency'
 ep(x, FUN, verbose = F,
    ...)

Arguments

x

An object of class parental.contingency, of the form desribed in the Details section.

FUN

A function to be applied to the samples before the edge probabilities are computed. The function should accept a vector of objects of class 'parental.list' and return the transformed parental objects as a single 'parental.list'. If the function does not return a 'parental.list', an error will be thrown. Can be supplied as a function, symbol or character string (see match.fun)

verbose

A logical indicating whether progress should be shown.

...

Further arguments (unused)

Value

A matrix of class 'ep' with entry (i,j) containing the probability of an edge from node i to j

See Also

ep


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