🛸 The Directed Prediction Index (DPI).
The Directed Prediction Index (DPI) is a simulation-based method for quantifying the relative endogeneity of outcome versus predictor variables in multiple linear regression models.
Citation
- Bao, H.-W.-S. (2025). DPI: The Directed Prediction Index. https://CRAN.R-project.org/package=DPI
-
Note: This is the original citation. Please refer to the information when you
library(DPI)
for the APA-7 format of the version you installed.
-
Note: This is the original citation. Please refer to the information when you
Installation
## Method 1: Install from CRAN
install.packages("DPI")
## Method 2: Install from GitHub
install.packages("devtools")
devtools::install_github("psychbruce/DPI", force=TRUE)
Computation Details
In econometrics and broader social sciences, an exogenous variable is assumed to have a unidirectional (causal or quasi-causal) influence on an endogenous variable (). By quantifying the relative endogeneity of outcome versus predictor variables in multiple linear regression models, the DPI can suggest a more plausible direction of influence (e.g., ) after controlling for a sufficient number of potential confounding variables.
- It uses to test whether (outcome), compared to (predictor), can be more strongly predicted by observable control variables (included in a regression model) and unobservable random covariates (specified by
k.cov
; see theDPI()
function). A higher indicates relatively higher dependence (i.e., relatively higher endogeneity) in a given variable set. - It also uses to penalize insignificant partial correlation (, with equivalent test as ) between and , while ignoring the sign () of this correlation. A higher (equivalent to test value when ) indicates a more robust (less spurious) partial relationship when controlling for other variables.
- Simulation samples with
k.cov
random covariates are generated to test the statistical significance of DPI.