Package: DPI 2026.2

DPI: The Directed Prediction Index for Causal Direction Inference from Observational Data

The Directed Prediction Index ('DPI') is a causal discovery method for observational data designed to quantify the relative endogeneity of outcome (Y) versus predictor (X) variables in regression models. By comparing the coefficients of determination (R-squared) between the Y-as-outcome and X-as-outcome models while controlling for sufficient confounders and simulating k random covariates, it can quantify relative endogeneity, providing a necessary but insufficient condition for causal direction from a less endogenous variable (X) to a more endogenous variable (Y). Methodological details are provided at <https://psychbruce.github.io/DPI/>. This package also includes functions for data simulation and network analysis (correlation, partial correlation, and Bayesian Networks).

Authors:Han Wu Shuang Bao [aut, cre]

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

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

Bug tracker:https://github.com/psychbruce/dpi/issues

Pkgdown/docs site:https://psychbruce.github.io

On CRAN:

Conda:

causal-discoverycausal-inferencecausalitydirected-acyclic-graphsdirected-networksinfluencelinear-regressionpredictionsimulationstatistics

4.45 score 4 stars 4 scripts 160 downloads 9 exports 83 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-x86_64OK199
source / vignettesOK195
linux-release-x86_64OK219
macos-release-arm64OK190
macos-oldrel-arm64OK191
windows-develOK139
windows-releaseOK135
windows-oldrelOK127
wasm-releaseOK139

Exports:BNs_dagcor_matrixcor_netDPIDPI_curveDPI_dagp_to_bfsim_datasim_data_exp

Dependencies:abindbackportsbase64encbnlearnbslibcachemcheckmatecliclustercolorspacecorpcorcowplotcpp11crayondata.tabledigestevaluatefarverfastmapfdrtoolfontawesomeforeignFormulafsggplot2glassoglueGPArotationgridExtragtablegtoolshighrHmischtmlTablehtmltoolshtmlwidgetsigraphisobandjpegjquerylibjsonliteknitrlabelinglatticelavaanlifecyclemagrittrMASSMatrixmemoisemimemnormtnlmennetnumDerivpbapplypbivnormpkgconfigplyrpngpsychqgraphquadprogR6rappdirsRColorBrewerRcppreshape2rlangrmarkdownrpartrstudioapiS7sassscalesstringistringrtinytexvctrsviridisLitewithrxfunyaml