Package: CCI 0.3.6.1

Christian Thorjussen

CCI: Computational Test for Conditional Independence

Tool for performing computational testing for conditional independence between variables in a dataset. 'CCI' implements permutation in combination with Monte Carlo Cross-Validation in generating null distributions and test statistics. For more details see Computational Test for Conditional Independence (2024) <doi:10.3390/a17080323>.

Authors:Christian Thorjussen [aut, cre], Kristian Hovde Liland [aut]

CCI_0.3.6.1.tar.gz
CCI_0.3.6.1.zip(r-4.7)CCI_0.3.6.1.zip(r-4.6)CCI_0.3.6.1.zip(r-4.5)
CCI_0.3.6.1.tgz(r-4.6-any)CCI_0.3.6.1.tgz(r-4.5-any)
CCI_0.3.6.1.tar.gz(r-4.7-any)CCI_0.3.6.1.tar.gz(r-4.6-any)
CCI_0.3.6.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
CCI/json (API)
NEWS

# Install 'CCI' in R:
install.packages('CCI', repos = c('https://khliland.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/khliland/cci/issues

Datasets:

On CRAN:

Conda:

5.28 score 2 stars 5 scripts 186 downloads 21 exports 83 dependencies

Last updated from:b3c319acc0. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK188
source / vignettesOK391
linux-release-x86_64OK197
macos-release-arm64OK138
macos-oldrel-arm64OK164
windows-develOK164
windows-releaseOK140
windows-oldrelOK147
wasm-releaseOK132

Exports:add_interaction_termsadd_poly_termsbuild_formulaCCI.directionCCI.pretunerCCI.testcheck_formulaclean_formulaget_pvaluesget_tuned_paramsis_categorical_Z_anymake_strata_from_categorical_Zperm.testpermute_within_strataQQplottest.genunclean_formulawrapper_knnwrapper_rangerwrapper_svmwrapper_xgboost

Dependencies:caretclasscliclockcodetoolscpp11crayondata.tablediagramdigestdplyre1071farverforeachfuturefuture.applygenericsggplot2globalsgluegowergtablehardhathmsigraphipredisobanditeratorsjsonliteKernSmoothkknnlabelinglatticelavalifecyclelistenvlubridatemagrittrMASSMatrixModelMetricsnlmennetnumDerivparallellypillarpkgconfigplyrprettyunitspROCprodlimprogressprogressrproxypurrrR6rangerRColorBrewerRcppRcppEigenrecipesreshape2rlangrpartS7scalesshapesparsevctrsSQUAREMstringistringrsurvivaltibbletidyrtidyselecttimechangetimeDatetzdbutf8vctrsviridisLitewithrxgboost

Conditional Independence Testing with CCI

Rendered fromTesting-CI-with-CCI.Rmdusingknitr::rmarkdownon May 15 2026.

Last update: 2026-01-16
Started: 2026-01-16

Readme and manuals

Help Manual

Help pageTopics
Creates interaction terms for specified variables in a data frame Interaction terms are named as '<var1>_int_<var2>' (e.g., 'Z1_int_Z2' for the product of 'Z1' and 'Z2').add_interaction_terms
Creates polynomial terms for specified variables in a data frame Polynomial terms are named as '<variable>_d_<degree>' (e.g., 'Z1_d_2' for the square of 'Z1').add_poly_terms
Build an expanded formula with poly and interaction termsbuild_formula
Choose Direction for testing for the CCI testCCI.direction
CCI tuner function for CCI testCCI.pretuner tuner
Computational test for conditional independence based on ML and Monte Carlo Cross ValidationCCI CCI.test
Check the formula statementcheck_formula
Clean and Reformat Formula Stringclean_formula
Example dataset: ExponentialNoiseExponentialNoise
P-value Calculation Based on Null Distribution and Test Statisticget_pvalues
Get the best parameters after tuning with CCI.tunerget_tuned_params
Example dataset: HardCaseHardCase
Check whether Z contains at least one categorical variableis_categorical_Z_any
Create strata from the categorical subset of Zmake_strata_from_categorical_Z
Example dataset: NonLinearCategorizationNonLinearCategorization
Example dataset: NonLinNormalNonLinNormal
Example dataset: NonLinNormalZs_d0NonLinNormalZs_d0
Example dataset: NonLinNormalZs_d05NonLinNormalZs_d05
Example dataset: NormalDataNormalData
Permutation Test for Conditional Independenceperm.test
Stratified permutation of x within stratapermute_within_strata
Plot for CCI testingplot.CCI
Example dataset: PoissonNoisePoissonNoise
Example dataset: PolyDataPolyData
Print and summary methods for the CCI classprint.CCI print.summary.CCI reports summary.CCI
QQ-plot for multiple testing in CCIQQplot
Generate the Test Statistic or Null Distribution Using Permutationtest.gen
Convert CI-style formula Y ~ X | Z into regression-style Y ~ X + Zunclean_formula
Example dataset: UniformNoise_largeUniformNoise_large
k-Nearest Neighbors (KNN) wrapper for CCI (kknn-based)wrapper_knn
Random Forest wrapper for CCIwrapper_ranger
SVM wrapper for CCIwrapper_svm
Extreme Gradient Boosting wrapper for CCIwrapper_xgboost