View source: R/causal_inference_helpers.R
pc_search | R Documentation |
Runs PC algorithm given a dataset dat
.
pc_search(dat, alpha = 0.05)
dat |
Numeric matrix. Dataset matrix with |
alpha |
Numeric — between 0 and 1. The significance level for the individual conditional independence tests. By default it is set to 0.05. |
The function pcalg:pc()
is called with the following
arguments:
suffStat = list(C = cor(dat), n = NROW(dat))
,
indepTest = gaussCItest
,
u2pd = "retry"
— this ensures that the produced CPDAG
is extendible to a DAG,
skel.method = "stable"
.
Square binary matrix (or NA
in case of error).
The CPDAG estimated from the data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.