powered by
Returns the directed graph using the conservative Peter-Clark algorithm.
mgm.cpc(ds, graph)
Dataset Object
Undirected graph received by calling the function mgm()
Returns the directed graph
# 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