{
  "_id": "6a47ce0de06c18f0a651f77c",
  "Package": "DPI",
  "Title": "The Directed Prediction Index for Causal Direction Inference\nfrom Observational Data",
  "Version": "2026.2",
  "Date": "2026-02-25",
  "Authors@R": "c(person(given = \"Han Wu Shuang\",\nfamily = \"Bao\",\nrole = c(\"aut\", \"cre\"),\nemail = \"baohws@foxmail.com\",\ncomment = c(ORCID = \"0000-0003-3043-710X\")))",
  "Maintainer": "Han Wu Shuang Bao <baohws@foxmail.com>",
  "Description": "The Directed Prediction Index ('DPI') is a causal\ndiscovery method for observational data designed to quantify\nthe relative endogeneity of outcome (Y) versus predictor (X)\nvariables in regression models. By comparing the coefficients\nof determination (R-squared) between the Y-as-outcome and\nX-as-outcome models while controlling for sufficient\nconfounders and simulating k random covariates, it can quantify\nrelative endogeneity, providing a necessary but insufficient\ncondition for causal direction from a less endogenous variable\n(X) to a more endogenous variable (Y). Methodological details\nare provided at <https://psychbruce.github.io/DPI/>. This\npackage also includes functions for data simulation and network\nanalysis (correlation, partial correlation, and Bayesian\nNetworks).",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "URL": "https://psychbruce.github.io/DPI/",
  "BugReports": "https://github.com/psychbruce/DPI/issues",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "Config/pak/sysreqs": "cmake libglpk-dev make libicu-dev libjpeg-dev\nlibpng-dev libuv1-dev libxml2-dev",
  "Repository": "https://psychbruce.r-universe.dev",
  "Date/Publication": "2026-02-26 08:50:28 UTC",
  "RemoteUrl": "https://github.com/psychbruce/dpi",
  "RemoteRef": "HEAD",
  "RemoteSha": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-03 14:54:17 UTC",
    "User": "root"
  },
  "Author": "Han Wu Shuang Bao [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-3043-710X>)",
  "_user": "psychbruce",
  "_type": "src",
  "_file": "DPI_2026.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/0a5b49b6fb7fa9dbe53e27c7f68ff11f9840dc5b0af90f063d1672d2d699ddac",
  "_filesize": 215042,
  "_sha256": "0a5b49b6fb7fa9dbe53e27c7f68ff11f9840dc5b0af90f063d1672d2d699ddac",
  "_expires": "2026-10-11T14:58:20.000Z",
  "_created": "2026-07-03T14:54:17.000Z",
  "_published": "2026-07-03T14:58:21.681Z",
  "_jobs": [
    {
      "job": 85024925485,
      "time": 194,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8069577061"
    },
    {
      "job": 85024925493,
      "time": 193,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8069576833"
    },
    {
      "job": 85024925514,
      "time": 120,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8069552583"
    },
    {
      "job": 85024925495,
      "time": 128,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8069554624"
    },
    {
      "job": 85024139186,
      "time": 275,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8069510107"
    },
    {
      "job": 85024925486,
      "time": 193,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8069576598"
    },
    {
      "job": 85024925516,
      "time": 138,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8069557976"
    },
    {
      "job": 85024925481,
      "time": 118,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8069550904"
    },
    {
      "job": 85024925501,
      "time": 136,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8069557337"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/psychbruce/actions/runs/28667915108",
  "_status": "success",
  "_upstream": "https://github.com/psychbruce/dpi",
  "_commit": {
    "id": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
    "author": "Bruce <psychbruce@qq.com>",
    "committer": "Bruce <psychbruce@qq.com>",
    "message": "[2026.2]\n",
    "time": 1772095828
  },
  "_maintainer": {
    "name": "Han Wu Shuang Bao",
    "email": "baohws@foxmail.com",
    "login": "psychbruce",
    "twitter": "@BaoHWS",
    "description": "🔮 Social Computing & Causal Discovery | Assistant Professor @ ECNU",
    "uuid": 34391475,
    "orcid": "0000-0003-3043-710X"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "crayon",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "cowplot",
      "role": "Imports"
    },
    {
      "package": "qgraph",
      "role": "Imports"
    },
    {
      "package": "bnlearn",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "bruceR",
      "role": "Suggests"
    },
    {
      "package": "aplot",
      "role": "Suggests"
    },
    {
      "package": "bayestestR",
      "role": "Suggests"
    }
  ],
  "_owner": "psychbruce",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-29",
      "n": 1
    },
    {
      "week": "2025-33",
      "n": 2
    },
    {
      "week": "2025-34",
      "n": 2
    },
    {
      "week": "2025-35",
      "n": 1
    },
    {
      "week": "2025-38",
      "n": 2
    },
    {
      "week": "2025-39",
      "n": 3
    },
    {
      "week": "2025-41",
      "n": 6
    },
    {
      "week": "2025-42",
      "n": 3
    },
    {
      "week": "2025-43",
      "n": 1
    },
    {
      "week": "2025-48",
      "n": 1
    },
    {
      "week": "2026-09",
      "n": 2
    }
  ],
  "_tags": [],
  "_topics": [
    "causal-discovery",
    "causal-inference",
    "causality",
    "directed-acyclic-graphs",
    "directed-networks",
    "influence",
    "linear-regression",
    "prediction",
    "simulation",
    "statistics"
  ],
  "_stars": 4,
  "_userbio": {
    "uuid": 34391475,
    "type": "user",
    "name": "Bruce H. W. S. Bao",
    "followers": 202,
    "description": "🔮 Social Computing & Causal Discovery | Assistant Professor @ ECNU"
  },
  "_downloads": {
    "count": 259,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/DPI"
  },
  "_devurl": "https://github.com/psychbruce/dpi",
  "_pkgdown": "https://psychbruce.github.io/DPI/",
  "_searchresults": 4,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/DPI.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/psychbruce/dpi",
  "_realowner": "psychbruce",
  "_cranurl": true,
  "_releases": [
    {
      "version": "2025.6",
      "date": "2025-06-18"
    },
    {
      "version": "2025.8",
      "date": "2025-08-20"
    },
    {
      "version": "2025.9",
      "date": "2025-09-20"
    },
    {
      "version": "2025.10",
      "date": "2025-10-16"
    },
    {
      "version": "2025.10-1",
      "date": "2025-10-23"
    },
    {
      "version": "2025.11",
      "date": "2025-11-24"
    },
    {
      "version": "2026.2",
      "date": "2026-02-26"
    }
  ],
  "_exports": [
    "BNs_dag",
    "cor_matrix",
    "cor_net",
    "DPI",
    "DPI_curve",
    "DPI_dag",
    "p_to_bf",
    "sim_data",
    "sim_data_exp"
  ],
  "_help": [
    {
      "page": "BNs_dag",
      "title": "Directed acyclic graphs (DAGs) via Bayesian networks (BNs).",
      "topics": [
        "BNs_dag"
      ]
    },
    {
      "page": "cor_matrix",
      "title": "Produce a symmetric correlation matrix from values.",
      "topics": [
        "cor_matrix"
      ]
    },
    {
      "page": "cor_net",
      "title": "Correlation and partial correlation networks.",
      "topics": [
        "cor_net"
      ]
    },
    {
      "page": "DPI",
      "title": "The Directed Prediction Index (DPI).",
      "topics": [
        "DPI"
      ]
    },
    {
      "page": "DPI_curve",
      "title": "DPI curve analysis across multiple random covariates.",
      "topics": [
        "DPI_curve"
      ]
    },
    {
      "page": "DPI_dag",
      "title": "Directed acyclic graphs (DAGs) via DPI exploratory analysis (causal discovery) for all significant partial _r_s.",
      "topics": [
        "DPI_dag"
      ]
    },
    {
      "page": "p_to_bf",
      "title": "Convert _p_ values to approximate (pseudo) Bayes Factors (PseudoBF10).",
      "topics": [
        "p_to_bf"
      ]
    },
    {
      "page": "sim_data",
      "title": "Simulate data from a multivariate normal distribution.",
      "topics": [
        "sim_data"
      ]
    },
    {
      "page": "sim_data_exp",
      "title": "Simulate experiment-like data with _independent_ binary Xs.",
      "topics": [
        "sim_data_exp"
      ]
    }
  ],
  "_pkglogo": "https://github.com/psychbruce/dpi/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/psychbruce/dpi/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "base64enc",
    "bnlearn",
    "bslib",
    "cachem",
    "checkmate",
    "cli",
    "cluster",
    "colorspace",
    "corpcor",
    "cowplot",
    "cpp11",
    "crayon",
    "data.table",
    "digest",
    "evaluate",
    "farver",
    "fastmap",
    "fdrtool",
    "fontawesome",
    "foreign",
    "Formula",
    "fs",
    "ggplot2",
    "glasso",
    "glue",
    "GPArotation",
    "gridExtra",
    "gtable",
    "gtools",
    "highr",
    "Hmisc",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "igraph",
    "isoband",
    "jpeg",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lavaan",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mime",
    "mnormt",
    "nlme",
    "nnet",
    "numDeriv",
    "pbapply",
    "pbivnorm",
    "pkgconfig",
    "plyr",
    "png",
    "psych",
    "qgraph",
    "quadprog",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "reshape2",
    "rlang",
    "rmarkdown",
    "rpart",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "stringi",
    "stringr",
    "tinytex",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml"
  ],
  "_score": 4.342422680822207,
  "_indexed": true,
  "_nocasepkg": "dpi",
  "_universes": [
    "psychbruce"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2026.2",
      "date": "2026-07-03T14:57:10.000Z",
      "distro": "resolute",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/55ff4a1c526c32ce428297028121ac79f2ce7203efaef8e799004084cbb84f1e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/28667915108"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2026.2",
      "date": "2026-07-03T14:57:11.000Z",
      "distro": "resolute",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/582d8cacd2fc14d9257760e6ec3fbba663dce8e905626efda5ecda133cfc9520",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/28667915108"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2026.2",
      "date": "2026-07-03T14:56:12.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/bd0c82b96fb7a00a7407a54b6a20346f71f8818b803b9d5c824bcb952a268bb1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/28667915108"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2026.2",
      "date": "2026-07-03T14:56:18.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/2c0c7932618b818fb0ce51d251dc1aba187c0772df5de9a7411fef21ef40478e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/28667915108"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2026.2",
      "date": "2026-07-03T14:57:56.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/775a5daeca07f643903563a179f990f4c9eea0890a10dbce7f5851f7c53aae16",
      "status": "success",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/28667915108"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2026.2",
      "date": "2026-07-03T14:56:01.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/51ac556277c3f253ed33288dfb354d13fc9903378b8dcc72a85da206554b9fc5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/28667915108"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2026.2",
      "date": "2026-07-03T14:55:41.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/7daaee6e4a89fee44cf303decfa192084b9a28ffe75a933bbaec151505e3b0ca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/28667915108"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2026.2",
      "date": "2026-07-03T14:55:47.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/5a4f471091b07d2901ee80d778e465e4670b9327d1791d09a41de561e148f2fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/28667915108"
    }
  ]
}