DPI

🛸 The Directed Prediction Index (DPI): Quantifying Relative Endogeneity of Outcome Versus Predictor Variables.

https://github.com/psychbruce/dpi

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.7%) to scientific vocabulary

Keywords

causal-inference causality causality-analysis directed-acyclic-graph influence linear-models linear-regression prediction simulation statistics
Last synced: 6 months ago · JSON representation

Repository

🛸 The Directed Prediction Index (DPI): Quantifying Relative Endogeneity of Outcome Versus Predictor Variables.

Basic Info
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
causal-inference causality causality-analysis directed-acyclic-graph influence linear-models linear-regression prediction simulation statistics
Created 10 months ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License

README.md

DPI

🛸 The Directed Prediction Index (DPI).

The Directed Prediction Index (DPI) is a simulation-based method for quantifying the relative endogeneity (relative dependence) of outcome (Y) versus predictor (X) variables in multiple linear regression models.

CRAN-Version GitHub-Version R-CMD-check CRAN-Downloads GitHub-Stars

Author

Bruce H. W. S. Bao 包寒吴霜

📬 baohws\@foxmail.com

📋 psychbruce.github.io

Citation

Installation

``` r

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

$$ \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.

  1. It uses $\Delta R_{Y vs. X}^2$ to test whether $Y$ (outcome), compared to $X$ (predictor), can be more strongly predicted by $m$ observable control variables (included in a regression model) and $k$ unobservable random covariates (specified by k.cov; see the DPI() function). A higher $R^2$ indicates relatively higher dependence (i.e., relatively higher endogeneity) in a given variable set.
  2. It also uses $t{partial.r}^2$ to penalize insignificant partial correlation ($r{partial}$, with equivalent $t$ test as $\beta_{partial}$) between $Y$ and $X$, while ignoring the sign ($\pm$) of this correlation. A higher $t^2$ (equivalent to $F$ test value when $df = 1$) indicates a more robust (less spurious) partial relationship when controlling for other variables.
  3. Simulation samples with k.cov random covariates are generated to test the statistical significance of DPI.

Owner

  • Name: Bruce H.-W.-S. Bao
  • Login: psychbruce
  • Kind: user
  • Location: Shanghai, China
  • Company: East China Normal University

🔮 Computational Intelligent Social Psychology | Assistant Professor @ ECNU

GitHub Events

Total
  • Watch event: 1
  • Push event: 14
Last Year
  • Watch event: 1
  • Push event: 14

Packages

  • Total packages: 1
  • Total downloads:
    • cran 263 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: DPI

The Directed Prediction Index

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 263 Last month
Rankings
Dependent packages count: 26.2%
Dependent repos count: 32.3%
Average: 48.3%
Downloads: 86.4%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 4.0.0 depends
  • cli * imports
  • crayon * imports
  • ggplot2 * imports
  • glue * imports
  • qgraph * imports
  • bruceR * suggests