Learn R Programming

causalMGM (version 0.1.1)

mgm.pc_stable: MGM PC Stable

Description

Implements the PC-stable search algorithm () algorithm and returns the directed graph. Also outputs the graph to a .txt file

Usage

mgm.pc_stable(ds, graph)

Arguments

ds

DataSet object

graph

Graph object of DataSet

Value

pcs_graph

Directed graph

References

Andrew J Sedgewick, Joseph D. Ramsey, Peter Spirtes, Clark Glymour, Panayiotis V. Benos, "Mixed Graphical Models for Causal Analysis of Multi-modal Variables", 2017, arXiv:1704.02621 https://arxiv.org/abs/1704.02621

Examples

Run this code
# NOT RUN {
library(rJava)
mgm_init()
ds <- loadSampleData()
# }
# NOT RUN {
graph <- mgm(ds)
# }
# NOT RUN {
mgm.pc_stable(ds, graph)
# }

Run the code above in your browser using DataLab