{"id":19253609,"url":"https://github.com/tidymodels/poissonreg","last_synced_at":"2025-04-21T14:32:10.654Z","repository":{"id":37938623,"uuid":"250132537","full_name":"tidymodels/poissonreg","owner":"tidymodels","description":"parsnip wrappers for Poisson regression","archived":false,"fork":false,"pushed_at":"2024-11-13T17:54:40.000Z","size":8571,"stargazers_count":22,"open_issues_count":3,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-19T03:57:29.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://poissonreg.tidymodels.org","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tidymodels.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-26T01:32:44.000Z","updated_at":"2024-11-13T17:51:57.000Z","dependencies_parsed_at":"2023-02-04T06:46:09.466Z","dependency_job_id":"daf77cdb-2715-4f0c-a3d0-bf8b43565641","html_url":"https://github.com/tidymodels/poissonreg","commit_stats":{"total_commits":120,"total_committers":7,"mean_commits":"17.142857142857142","dds":"0.41666666666666663","last_synced_commit":"3e38cae0b9f73bbb26a46d52966e4c26328b2b96"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fpoissonreg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fpoissonreg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fpoissonreg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fpoissonreg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidymodels","download_url":"https://codeload.github.com/tidymodels/poissonreg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250045428,"owners_count":21365709,"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":[],"created_at":"2024-11-09T18:32:08.131Z","updated_at":"2025-04-21T14:32:10.252Z","avatar_url":"https://github.com/tidymodels.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# poissonreg \u003ca href=\"https://poissonreg.tidymodels.org/\"\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"138\" alt=\"Six fishes, each in a different color: red, green, orange, purple, yellow, blue.\" /\u003e\u003c/a\u003e\n\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/tidymodels/poissonreg/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tidymodels/poissonreg/actions/workflows/R-CMD-check.yaml)\n[![CRAN status](https://www.r-pkg.org/badges/version/poissonreg)](https://CRAN.R-project.org/package=poissonreg)\n[![Codecov test coverage](https://codecov.io/gh/tidymodels/poissonreg/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tidymodels/poissonreg?branch=main)\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html)\n\u003c!-- badges: end --\u003e\n\npoissonreg enables the parsnip package to fit various types of Poisson regression models including ordinary generalized linear models, simple Bayesian models (via rstanarm), and two zero-inflated Poisson models (via pscl). \n\n## Installation\n\nYou can install the released version of poissonreg from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"poissonreg\")\n```\n\nInstall the development version from GitHub with:\n\n``` r\n# install.packages(\"pak\")\npak::pak(\"tidymodels/poissonreg\")\n```\n\n## Available Engines\n\nThe poissonreg package provides engines for the models in the following table.\n\n```{r, echo=FALSE, message=FALSE}\nlibrary(parsnip)\n\nparsnip_models \u003c- get_from_env(\"models\") %\u003e%\n  setNames(., .) %\u003e%\n  purrr::map_dfr(get_from_env, .id = \"model\")\n\nlibrary(poissonreg)\n\npoissonreg_models \u003c- get_from_env(\"models\") %\u003e%\n  setNames(., .) %\u003e%\n  purrr::map_dfr(get_from_env, .id = \"model\")\n\ndplyr::anti_join(\n  poissonreg_models, parsnip_models,\n  by = c(\"model\", \"engine\", \"mode\")\n) %\u003e%\n  knitr::kable()\n```\n\n## Example\n\nA log-linear model for categorical data analysis: \n\n```{r example}\nlibrary(poissonreg)\n\n# 3D contingency table from Agresti (2007):\npoisson_reg() %\u003e%\n  set_engine(\"glm\") %\u003e%\n  fit(count ~ (.)^2, data = seniors)\n```\n\n## Contributing\n\nThis project is released with a [Contributor Code of Conduct](https://www.contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n\n- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on RStudio Community](https://community.rstudio.com/new-topic?category_id=15\u0026tags=tidymodels,question).\n\n- If you think you have encountered a bug, please [submit an issue](https://github.com/tidymodels/poissonreg/issues).\n\n- Either way, learn how to create and share a [reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html) (a minimal, reproducible example), to clearly communicate about your code.\n\n- Check out further details on [contributing guidelines for tidymodels packages](https://www.tidymodels.org/contribute/) and [how to get help](https://www.tidymodels.org/help/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidymodels%2Fpoissonreg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidymodels%2Fpoissonreg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidymodels%2Fpoissonreg/lists"}