🛸 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.
Han-Wu-Shuang (Bruce) Bao 包寒吴霜
library(DPI)
for the APA-7 format of the version you installed.## Method 1: Install from CRAN
install.packages("DPI")
## Method 2: Install from GitHub
install.packages("devtools")
devtools::install_github("psychbruce/DPI", force=TRUE)
$$ \begin{aligned} \text{DPI}{X \rightarrow Y} & = t^2 \cdot \Delta R^2 \ & = t{\beta_{XY|Covs}}^2 \cdot (R_{Y \sim X + Covs}^2 - R_{X \sim Y + Covs}^2) \ & = t_{partial.r_{XY|Covs}}^2 \cdot (R_{Y \sim X + Covs}^2 - R_{X \sim Y + Covs}^2) \end{aligned} $$
In econometrics and broader social sciences, an exogenous variable is assumed to have a unidirectional (causal or quasi-causal) influence on an endogenous variable ($ExoVar \rightarrow EndoVar$). 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., $\text{DPI}_{X \rightarrow Y} > 0 \text{: } X \rightarrow Y$) after controlling for a sufficient number of potential confounding variables.
k.cov
; see DPI
). A higher $R^2$ indicates relatively higher dependence (i.e., relatively higher endogeneity) in a given variable set.k.cov
random covariates are generated to test the statistical significance of DPI.Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.