print.abnCache: Print objects of class 'abnCache'

View source: R/abn-methods.R

print.abnCacheR Documentation

Print objects of class abnCache

Description

Print objects of class abnCache

Usage

## S3 method for class 'abnCache'
print(x, digits = 3, ...)

Arguments

x

Object of class abnCache

digits

number of digits of the results.

...

additional parameters. Not used at the moment.

Value

summary statement of the class of abnCache.

Examples

## Subset of the build-in dataset, see  ?ex0.dag.data
mydat <- ex0.dag.data[,c("b1","b2","g1","g2","b3","g3")] ## take a subset of cols

## setup distribution list for each node
mydists <- list(b1="binomial", b2="binomial", g1="gaussian",
                g2="gaussian", b3="binomial", g3="gaussian")

# Structural constraints
# ban arc from b2 to b1
# always retain arc from g2 to g1

## parent limits
max.par <- list("b1"=2, "b2"=2, "g1"=2, "g2"=2, "b3"=2, "g3"=2)

## now build the cache of pre-computed scores accordingly to the structural constraints

res.c <- buildScoreCache(data.df=mydat, data.dists=mydists,
                         dag.banned= ~b1|b2, dag.retained= ~g1|g2, max.parents=max.par)
print(res.c)

abn documentation built on Nov. 3, 2023, 5:08 p.m.