-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal-ci.r
More file actions
29 lines (27 loc) · 946 Bytes
/
local-ci.r
File metadata and controls
29 lines (27 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
library(FCI.Utils)
library(pcalg)
library(igraph)
library(RBGL)
library(rje)
library(graph)
library(doFuture)
library(gtools)
library(rIOD)
#n_cores <- 8
#plan("multicore", workers = n_cores, gc=TRUE)
run_ci_test <- function(data, max_cond_set_cardinality, filedir, filename) {
labels <- colnames(data)
indepTest <- mixedCITest
suffStat <- getMixedCISuffStat(dat = data,
vars_names = labels,
covs_names = c())
citestResults <- getAllCITestResults(data,
indepTest,
suffStat,
m.max=max_cond_set_cardinality,
saveFiles=FALSE,
fileid=filename,
citestResults_folder=filedir)
result <- list(citestResults=citestResults, labels=labels)
result
}