new_bcdag {BCDAG}R Documentation

Create new bcdag objects

Description

Internal function used as constructor for S3 objects of class bcdag, which constitute the output of function learn_DAG() and the input of functions belonging to the get_ family such as get_causaleffect().

Usage

new_bcdag(x = list(), input = list(), type = "complete")

Arguments

x

A list

input

A list containing the inputs given to learn_DAG()

type

A string indicating whether the output produced by learn_DAG() should be of type "complete", "compressed", "collapsed" or "compressed and collapsed"

Value

An S3 object of class bcdag

Author(s)

Federico Castelletti and Alessandro Mascaro

References

F. Castelletti and A. Mascaro (2022). BCDAG: An R package for Bayesian structural and Causal learning of Gaussian DAGs. arXiv pre-print, url: https://arxiv.org/abs/2201.12003


[Package BCDAG version 1.0.0 Index]