Learn R Programming

causalMGM (version 0.1.1)

mgm.cpc: Conservative PC

Description

Returns the directed graph using the conservative Peter-Clark algorithm.

Usage

mgm.cpc(ds, graph)

Arguments

ds

Dataset Object

graph

Undirected graph received by calling the function mgm()

Value

Returns the directed graph

Examples

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

Run the code above in your browser using DataLab