{
  "_id": "6ae5b2c68d250e7ad09f3623",
  "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-10-31 08:52:59 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/650d37650afd08246abe39fa728712fd03a2671562d94cfac412f2f70069c422",
  "_filesize": 209328,
  "_sha256": "650d37650afd08246abe39fa728712fd03a2671562d94cfac412f2f70069c422",
  "_expires": "2027-02-08T09:20:04.000Z",
  "_created": "2026-10-31T08:52:59.000Z",
  "_published": "2026-10-31T09:20:05.933Z",
  "_upstream": "https://github.com/psychbruce/dpi",
  "_status": "success",
  "_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"
  },
  "_jobs": [
    {
      "job": 124494160885,
      "time": 191,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13037450419"
    },
    {
      "job": 124494160890,
      "time": 182,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13036483839"
    },
    {
      "job": 124494160870,
      "time": 143,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13037382816"
    },
    {
      "job": 124494160930,
      "time": 156,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13037378335"
    },
    {
      "job": 124493466535,
      "time": 213,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13036453698"
    },
    {
      "job": 124494160856,
      "time": 135,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13036184071"
    },
    {
      "job": 124494160881,
      "time": 120,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13035879734"
    },
    {
      "job": 124494160914,
      "time": 119,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13036174124"
    },
    {
      "job": 124494160911,
      "time": 127,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13037535062"
    }
  ],
  "_buildurl": "https://github.com/r-universe/psychbruce/actions/runs/41186163542",
  "_commit": {
    "id": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
    "author": "Bruce <psychbruce@qq.com>",
    "committer": "Bruce <psychbruce@qq.com>",
    "message": "[2026.2]\n",
    "time": 1772095828
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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-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": 309,
    "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/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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": 3.6020599913279625,
  "_indexed": true,
  "_nocasepkg": "dpi",
  "_universes": [
    "psychbruce"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2026.2",
      "date": "2026-10-31T08:55:45.000Z",
      "distro": "resolute",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/2f833eacf6b00bb7ee8ac6941f9ab817573e1564e02ae8dfe09f9dc31ee10f86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/41186163542"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2026.2",
      "date": "2026-10-31T08:55:41.000Z",
      "distro": "resolute",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/981129a55007a58f67aa5a2dc895fb9a85951e6f2f4fb263199d44f7c1994593",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/41186163542"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2026.2",
      "date": "2026-10-31T09:14:49.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/f1d65819e5e707fdf702cc0c5efeca56bc7af35c47d5527a036bba3906ef84eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/41186163542"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "2026.2",
      "date": "2026-10-31T09:18:50.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/677c9c2c7b947faa32eca5b63ad373df9fb457012bcdbb1b6afe666f62a924ef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/41186163542"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2026.2",
      "date": "2026-10-31T08:55:39.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/dcfa3d34353d6688039f5e4ca6702755bf1529e8797f5167b8ff905678524687",
      "status": "success",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/41186163542"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2026.2",
      "date": "2026-10-31T08:54:25.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/86c763ea8ac36b07955c6494e31947b0eb565c09c4720cc5fee73d7253902304",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/41186163542"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2026.2",
      "date": "2026-10-31T08:54:29.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/e83d8b21bef07169f00e87f2b689b5db4dc873b6e0d8321acc383be7b08bba6e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/41186163542"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "2026.2",
      "date": "2026-10-31T08:54:34.000Z",
      "commit": "ded5a3244992f8455f7669aaa91a8d4342fa9b85",
      "fileid": "https://r2.ropensci.org/86731a27fb6ab0135ae72590eb18a762e4ad61e21b07fe4dec127eef39528877",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psychbruce/actions/runs/41186163542"
    }
  ]
}