{
  "_id": "6a3640b63efcd9bda43fbfde",
  "Package": "piecewiseSEM",
  "Type": "Package",
  "Title": "Piecewise Structural Equation Modeling",
  "Version": "2.3.1",
  "Date": "2025-09-02",
  "Authors@R": "c(\nperson(\"Jon\", \"Lefcheck\",   role = c(\"aut\", \"cre\"), email = \"jslefche@gmail.com\"),\nperson(\"Jarrett\", \"Byrnes\",  role = \"aut\", email = \"jarrett.byrnes@umb.edu\"),\nperson(\"James\", \"Grace\",  role = \"aut\", email = \"gracej@usgs.gov\")\n)",
  "Maintainer": "Jon Lefcheck <jslefche@gmail.com>",
  "Description": "Implements piecewise structural equation modeling from a\nsingle list of structural equations, with new methods for\nnon-linear, latent, and composite variables, standardized\ncoefficients, query-based prediction and indirect effects. See\n<http://jslefche.github.io/piecewiseSEM/> for more.",
  "URL": "https://github.com/jslefche/",
  "BugReports": "https://github.com/jslefche/piecewiseSEM/issues",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake libglpk-dev make libicu-dev libuv1-dev\nlibxml2-dev libx11-dev",
  "Repository": "https://jslefche.r-universe.dev",
  "Date/Publication": "2025-09-02 18:25:32 UTC",
  "RemoteUrl": "https://github.com/jslefche/piecewisesem",
  "RemoteRef": "HEAD",
  "RemoteSha": "e8d7d4555d501b07e2bbbae0ec87a3616dd1287f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-20 07:22:28 UTC",
    "User": "root"
  },
  "Author": "Jon Lefcheck [aut, cre],\nJarrett Byrnes [aut],\nJames Grace [aut]",
  "MD5sum": "e06ecf01a407d5469b4f00c0d01b5d64",
  "_user": "jslefche",
  "_type": "src",
  "_file": "piecewiseSEM_2.3.1.tar.gz",
  "_fileid": "50bcdaaf0d8c43f71764938df7fcb74b98e85d3d166385d0027a6091ae02261c",
  "_filesize": 297723,
  "_sha256": "50bcdaaf0d8c43f71764938df7fcb74b98e85d3d166385d0027a6091ae02261c",
  "_created": "2026-06-20T07:22:28.000Z",
  "_published": "2026-06-20T07:26:46.160Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82465188975,
      "time": 177,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7763212763"
    },
    {
      "job": 82465188981,
      "time": 177,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763212684"
    },
    {
      "job": 82465188983,
      "time": 221,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7763213944"
    },
    {
      "job": 82465188982,
      "time": 205,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763212591"
    },
    {
      "job": 82464958873,
      "time": 216,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763190073"
    },
    {
      "job": 82465188967,
      "time": 126,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763206266"
    },
    {
      "job": 82465189004,
      "time": 116,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7763204965"
    },
    {
      "job": 82465189001,
      "time": 118,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7763205448"
    },
    {
      "job": 82465189006,
      "time": 117,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763205239"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jslefche/actions/runs/27864039441",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/jslefche/piecewisesem",
  "_commit": {
    "id": "e8d7d4555d501b07e2bbbae0ec87a3616dd1287f",
    "author": "Jon Lefcheck <jlefcheck@umces.edu>",
    "committer": "Jon Lefcheck <jlefcheck@umces.edu>",
    "message": "CRAN submission\n",
    "time": 1756837532
  },
  "_maintainer": {
    "name": "Jon Lefcheck",
    "email": "jslefche@gmail.com"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.5.0",
      "role": "Depends"
    },
    {
      "package": "car",
      "role": "Imports"
    },
    {
      "package": "DiagrammeR",
      "role": "Imports"
    },
    {
      "package": "emmeans",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Imports"
    },
    {
      "package": "multcomp",
      "role": "Imports"
    },
    {
      "package": "MuMIn",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "nlme",
      "role": "Imports"
    },
    {
      "package": "performance",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "jslefche",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-36",
      "n": 4
    }
  ],
  "_tags": [],
  "_topics": [
    "sem"
  ],
  "_stars": 179,
  "_contributors": [
    {
      "user": "jebyrnes",
      "count": 64,
      "uuid": 757410
    },
    {
      "user": "achazhardenberg",
      "count": 19,
      "uuid": 5829411
    },
    {
      "user": "jslefche",
      "count": 14,
      "uuid": 2342999
    },
    {
      "user": "kdarras",
      "count": 2,
      "uuid": 7696198
    },
    {
      "user": "j-tweed",
      "count": 1,
      "uuid": 1643942
    }
  ],
  "_userbio": {
    "uuid": 2342999,
    "type": "user",
    "name": "Jon Lefcheck",
    "followers": 150
  },
  "_downloads": {
    "count": 3424,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/piecewiseSEM"
  },
  "_mentions": 123,
  "_devurl": "https://github.com/jslefche/piecewisesem",
  "_searchresults": 764,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/piecewiseSEM.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/jslefche/piecewisesem",
  "_realowner": "jslefche",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2015-10-27"
    },
    {
      "version": "1.0.3",
      "date": "2016-02-01"
    },
    {
      "version": "1.1",
      "date": "2016-03-14"
    },
    {
      "version": "1.1.1",
      "date": "2016-05-18"
    },
    {
      "version": "1.1.2",
      "date": "2016-06-06"
    },
    {
      "version": "1.1.3",
      "date": "2016-07-11"
    },
    {
      "version": "1.2.0",
      "date": "2016-10-11"
    },
    {
      "version": "1.2.1",
      "date": "2016-12-08"
    },
    {
      "version": "2.0.0",
      "date": "2018-06-12"
    },
    {
      "version": "2.0.1",
      "date": "2018-07-03"
    },
    {
      "version": "2.0.2",
      "date": "2018-07-24"
    },
    {
      "version": "2.1.0",
      "date": "2019-12-05"
    },
    {
      "version": "2.1.2",
      "date": "2020-12-09"
    },
    {
      "version": "2.3.0",
      "date": "2023-03-04"
    },
    {
      "version": "2.3.0.1",
      "date": "2024-06-11"
    },
    {
      "version": "2.3.1",
      "date": "2025-09-02"
    }
  ],
  "_exports": [
    "%~~%",
    "AIC_psem",
    "as.psem",
    "basisSet",
    "cerror",
    "coefs",
    "dSep",
    "evaluateClasses",
    "fisherC",
    "getCoefficients",
    "getDAG",
    "getSortedPsem",
    "LLchisq",
    "multigroup",
    "partialCorr",
    "partialResid",
    "psem",
    "rsquared",
    "stdCoefs",
    "unstdCoefs"
  ],
  "_datasets": [
    {
      "name": "keeley",
      "title": "Data set from Grace & Keeley (2006)",
      "object": "keeley",
      "class": [
        "data.frame"
      ],
      "fields": [
        "distance",
        "elev",
        "abiotic",
        "age",
        "hetero",
        "firesev",
        "cover",
        "rich"
      ],
      "rows": 90,
      "table": true,
      "tojson": true
    },
    {
      "name": "meadows",
      "title": "Data set from Grace & Jutila (1999)",
      "object": "meadows",
      "class": [
        "data.frame"
      ],
      "fields": [
        "grazed",
        "mass",
        "elev",
        "rich"
      ],
      "rows": 354,
      "table": true,
      "tojson": true
    },
    {
      "name": "shipley",
      "title": "Data set from Shipley (2006)",
      "object": "shipley",
      "class": [
        "data.frame"
      ],
      "fields": [
        "site",
        "tree",
        "lat",
        "year",
        "Date",
        "DD",
        "Growth",
        "Survival",
        "Live"
      ],
      "rows": 1900,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "piecewiseSEM-package",
      "title": "The 'piecewiseSEM` package",
      "topics": [
        "piecewiseSEM-package",
        "piecewiseSEM"
      ]
    },
    {
      "page": "grapes-twiddle-twiddle-grapes",
      "title": "Correlated error operator",
      "topics": [
        "%~~%"
      ]
    },
    {
      "page": "AIC_psem",
      "title": "Information criterion values for SEM",
      "topics": [
        "AIC_psem"
      ]
    },
    {
      "page": "AIC.psem",
      "title": "Generic function for SEM AIC(c) score",
      "topics": [
        "AIC.psem"
      ]
    },
    {
      "page": "anova.psem",
      "title": "ANOVA and chi-squared difference test for model comparison",
      "topics": [
        "anova.psem"
      ]
    },
    {
      "page": "as.psem",
      "title": "Convert list to psem object",
      "topics": [
        "as.psem"
      ]
    },
    {
      "page": "basisSet",
      "title": "Derivation of the basis set",
      "topics": [
        "basisSet"
      ]
    },
    {
      "page": "cbind_fill",
      "title": "Bind data.frames of differing dimensions",
      "topics": [
        "cbind_fill"
      ]
    },
    {
      "page": "cerror",
      "title": "Correlated errors",
      "topics": [
        "cerror"
      ]
    },
    {
      "page": "coefs",
      "title": "Extract path coefficients",
      "topics": [
        "coefs"
      ]
    },
    {
      "page": "dSep",
      "title": "Tests of directed separation",
      "topics": [
        "dSep"
      ]
    },
    {
      "page": "evaluateClasses",
      "title": "Evaluate model classes and stop if unsupported model class",
      "topics": [
        "evaluateClasses"
      ]
    },
    {
      "page": "fisherC",
      "title": "Summarize tests of directed separation using Fisher's C statistic",
      "topics": [
        "fisherC"
      ]
    },
    {
      "page": "getDAG",
      "title": "Generate adjacency matrix from list of structural equations",
      "topics": [
        "getDAG"
      ]
    },
    {
      "page": "getSortedPsem",
      "title": "Get a sorted psem object in DAG order",
      "topics": [
        "getSortedPsem"
      ]
    },
    {
      "page": "import",
      "title": "Functions to import from dependencies",
      "topics": [
        "import"
      ]
    },
    {
      "page": "keeley",
      "title": "Data set from Grace & Keeley (2006)",
      "topics": [
        "keeley"
      ]
    },
    {
      "page": "LLchisq",
      "title": "Generalized chi-squared for piecewise SEM",
      "topics": [
        "LLchisq"
      ]
    },
    {
      "page": "meadows",
      "title": "Data set from Grace & Jutila (1999)",
      "topics": [
        "meadows"
      ]
    },
    {
      "page": "multigroup",
      "title": "Multigroup Analysis for Piecewise SEM",
      "topics": [
        "multigroup"
      ]
    },
    {
      "page": "partialResid",
      "title": "Computing partial effects",
      "topics": [
        "partialResid"
      ]
    },
    {
      "page": "plot.psem",
      "title": "Plotting of Piecewise Structural Equation Models",
      "topics": [
        "plot.psem"
      ]
    },
    {
      "page": "print.anova.psem",
      "title": "Print anova",
      "topics": [
        "print.anova.psem"
      ]
    },
    {
      "page": "print.basisSet",
      "title": "Print basis set",
      "topics": [
        "print.basisSet"
      ]
    },
    {
      "page": "print.multigroup.psem",
      "title": "Print multigroup",
      "topics": [
        "print.multigroup.psem"
      ]
    },
    {
      "page": "print.psem",
      "title": "Print psem",
      "topics": [
        "print.psem"
      ]
    },
    {
      "page": "print.summary.psem",
      "title": "Print summary",
      "topics": [
        "print.summary.psem"
      ]
    },
    {
      "page": "psem",
      "title": "Fitting piecewise structural equation models",
      "topics": [
        "psem"
      ]
    },
    {
      "page": "residuals.psem",
      "title": "Residual values from fit models",
      "topics": [
        "residuals.psem"
      ]
    },
    {
      "page": "rsquared",
      "title": "R-squared for linear regression",
      "topics": [
        "rsquared"
      ]
    },
    {
      "page": "shipley",
      "title": "Data set from Shipley (2006)",
      "topics": [
        "shipley"
      ]
    },
    {
      "page": "summary.psem",
      "title": "Summarizing piecewise structural equation models",
      "topics": [
        "summary.psem"
      ]
    },
    {
      "page": "update.psem",
      "title": "Update psem model object with additional values.",
      "topics": [
        "update.psem"
      ]
    }
  ],
  "_readme": "https://github.com/jslefche/piecewisesem/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "base64enc",
    "bayestestR",
    "bit",
    "bit64",
    "boot",
    "broom",
    "bslib",
    "cachem",
    "car",
    "carData",
    "cli",
    "clipr",
    "codetools",
    "colorspace",
    "cowplot",
    "cpp11",
    "crayon",
    "datawizard",
    "Deriv",
    "DiagrammeR",
    "digest",
    "doBy",
    "dplyr",
    "emmeans",
    "estimability",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "forecast",
    "Formula",
    "fracdiff",
    "fs",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "highr",
    "hms",
    "htmltools",
    "htmlwidgets",
    "igraph",
    "insight",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "memoise",
    "mgcv",
    "microbenchmark",
    "mime",
    "minqa",
    "modelr",
    "multcomp",
    "MuMIn",
    "mvtnorm",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbkrtest",
    "performance",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "quantreg",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "readr",
    "reformulas",
    "rlang",
    "rmarkdown",
    "rstudioapi",
    "S7",
    "sandwich",
    "sass",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "TH.data",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "tinytex",
    "tzdb",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "visNetwork",
    "vroom",
    "withr",
    "xfun",
    "yaml",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "piecewiseSEM.Rmd",
      "filename": "piecewiseSEM.html",
      "title": "piecewiseSEM: Piecewise Structural Equation Modeling in R",
      "author": "Jonathan S. Lefcheck",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2015-10-23 14:38:07",
      "modified": "2023-03-03 17:13:09",
      "commits": 18
    }
  ],
  "_score": 10.448631395944343,
  "_indexed": true,
  "_nocasepkg": "piecewisesem",
  "_universes": [
    "jslefche"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.3.1",
      "date": "2026-06-20T07:25:00.000Z",
      "distro": "noble",
      "commit": "e8d7d4555d501b07e2bbbae0ec87a3616dd1287f",
      "fileid": "608f5d44bfa8cd8b46c953d4f1c52756f360f82e0dcd1e3a11dc6a5ee6e544ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jslefche/actions/runs/27864039441"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.3.1",
      "date": "2026-06-20T07:24:59.000Z",
      "distro": "noble",
      "commit": "e8d7d4555d501b07e2bbbae0ec87a3616dd1287f",
      "fileid": "868aafc6f35a05f9f1605f5339503589b4c47c97c5a6cc5aa2c0ea23b362ca7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jslefche/actions/runs/27864039441"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.3.1",
      "date": "2026-06-20T07:25:19.000Z",
      "commit": "e8d7d4555d501b07e2bbbae0ec87a3616dd1287f",
      "fileid": "aca398216833db3d98d8c18478ec90d5f9d8332b504c4ee1435520d6b21da7b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jslefche/actions/runs/27864039441"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.3.1",
      "date": "2026-06-20T07:24:55.000Z",
      "commit": "e8d7d4555d501b07e2bbbae0ec87a3616dd1287f",
      "fileid": "5232338b2b12cbc37bf742d166a36043045fc10bb472ca59ea5a7af4238ff493",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jslefche/actions/runs/27864039441"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.3.1",
      "date": "2026-06-20T07:24:53.000Z",
      "commit": "e8d7d4555d501b07e2bbbae0ec87a3616dd1287f",
      "fileid": "9c4b5a4d4e3cce24fcaf15dc95bdea82cc410ff2d6c74b58c6716da209c6a6b8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jslefche/actions/runs/27864039441"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.3.1",
      "date": "2026-06-20T07:23:50.000Z",
      "commit": "e8d7d4555d501b07e2bbbae0ec87a3616dd1287f",
      "fileid": "a8735380f4aaa56b3978516f5dc29ced0e9b0dd5bba4988653d90df9abce7c53",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jslefche/actions/runs/27864039441"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.3.1",
      "date": "2026-06-20T07:23:58.000Z",
      "commit": "e8d7d4555d501b07e2bbbae0ec87a3616dd1287f",
      "fileid": "499097be561b80be6ca29d9fa7edf0880ed9990620dcdce127ed32eb00c37606",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jslefche/actions/runs/27864039441"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.3.1",
      "date": "2026-06-20T07:23:54.000Z",
      "commit": "e8d7d4555d501b07e2bbbae0ec87a3616dd1287f",
      "fileid": "1b293303c1ad7d285c4bab0ec0cff82adc8af1be3aee30acd248ecbdf406db2a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jslefche/actions/runs/27864039441"
    }
  ]
}