parentalFromEPThreshold: Threshold posterior edge probabilities.

Description Usage Arguments Value See Also Examples

View source: R/post.R

Description

Return the parental given by thresholding a edge probability matrix at a given level. The inequality is >=. Note this may well be cyclic.

Usage

1

Arguments

ep

A matrix of class ep

threshold

The value at which to threshold the matrix

Value

An object of class parental

See Also

ep

Examples

1
2
3
4
5
6
7
8
9
x1 <- factor(c(1, 1, 0, 1))
x2 <- factor(c(0, 1, 0, 1))
x <- data.frame(x1 = x1, x2 = x2)

exact <- posterior(data = x, "exact")

myep <- ep(exact)
parentalFromEPThreshold(myep, 0.2)
parentalFromEPThreshold(myep, 0.4)

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