{"id":13857826,"url":"https://github.com/jslefche/piecewiseSEM","last_synced_at":"2025-07-13T22:31:18.102Z","repository":{"id":19365949,"uuid":"22606015","full_name":"jslefche/piecewiseSEM","owner":"jslefche","description":"Piecewise Structural Equation Modeling in R","archived":false,"fork":false,"pushed_at":"2024-06-11T13:09:24.000Z","size":2864,"stargazers_count":156,"open_issues_count":64,"forks_count":49,"subscribers_count":14,"default_branch":"main","last_synced_at":"2024-11-22T15:41:24.120Z","etag":null,"topics":["r","sem"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jslefche.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-04T13:55:07.000Z","updated_at":"2024-11-04T23:58:26.000Z","dependencies_parsed_at":"2023-01-13T20:20:01.369Z","dependency_job_id":"772308ec-48a3-41db-85c5-dde2cafbb1e1","html_url":"https://github.com/jslefche/piecewiseSEM","commit_stats":{"total_commits":1294,"total_committers":9,"mean_commits":"143.77777777777777","dds":0.4080370942812983,"last_synced_commit":"aac65aafd979b8dbce6c725b11b85123097f6fe7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jslefche/piecewiseSEM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jslefche%2FpiecewiseSEM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jslefche%2FpiecewiseSEM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jslefche%2FpiecewiseSEM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jslefche%2FpiecewiseSEM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jslefche","download_url":"https://codeload.github.com/jslefche/piecewiseSEM/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jslefche%2FpiecewiseSEM/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265218209,"owners_count":23729496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["r","sem"],"created_at":"2024-08-05T03:01:48.070Z","updated_at":"2025-07-13T22:31:17.286Z","avatar_url":"https://github.com/jslefche.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# piecewiseSEM: Piecewise Structural Equation Modeling in R\n[![CRAN\\_Status\\_Badge](http://www.r-pkg.org/badges/version/piecewiseSEM)](https://cran.r-project.org/package=piecewiseSEM)\n\n## Version 2.3.0.1\n## Last updated: 11 June 2024\n\n## To install\n\nRun the following code to install the latest version from CRAN:\n```\ninstall.packages(\"piecewiseSEM\")\n```\nRun the following code to install the development version:\n```\ndevtools::install_github(\"jslefche/piecewiseSEM@devel\")\n```\nNote: the development version may be unstable and lead to unanticipated bugs.\nContact the package developer via Github with any bugs or issues.\n\n## Getting Help\nSee our website at [piecewiseSEM](http://jslefche.github.io/piecewiseSEM/)\n\nThere is an online resource available for SEM, including `piecewiseSEM` and `lavaan`, available [https://jslefche.github.io/sem_book/](https://jslefche.github.io/sem_book/)\n\nVersion 2 is a major update to the `piecewiseSEM` package that uses a completely revised syntax that better reproduces the base R syntax and output. It is highly recommended that consult the resource above even if you have used the package before as it documents the many changes.\n\nCurrently supported model classes: `lm, glm, gls, Sarlm, lme, glmmPQL, lmerMod, merModLmerTest, glmerMod. glmmTMB, gam`\n\n### Example\n```\n# Load library\nlibrary(piecewiseSEM)\n\n# Create fake data\nset.seed(1)\n\ndata \u003c- data.frame(\n  x = runif(100),\n  y1 = runif(100),\n  y2 = rpois(100, 1),\n  y3 = runif(100)\n)\n\n# Create SEM using `psem`\nmodelList \u003c- psem(\n  lm(y1 ~ x, data),\n  glm(y2 ~ x, \"poisson\", data),\n  lm(y3 ~ y1 + y2, data),\n  data\n)\n\n# Run summary\nsummary(modelList)\n\n# Address conflict using conserve = T\nsummary(modelList, conserve = T)\n\n# Address conflict using direction = c()\nsummary(modelList, direction = c(\"y2 \u003c- y1\"))\n\n# Address conflict using correlated errors\nmodelList2 \u003c- update(modelList, y2 %~~% y1)\n\nsummary(modelList2)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjslefche%2FpiecewiseSEM","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjslefche%2FpiecewiseSEM","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjslefche%2FpiecewiseSEM/lists"}