{"id":13665886,"url":"https://github.com/mkearney/tidyreg","last_synced_at":"2025-09-26T15:22:35.679Z","repository":{"id":124079675,"uuid":"135854085","full_name":"mkearney/tidyreg","owner":"mkearney","description":"🎓 Tidy regression tools for academics","archived":false,"fork":false,"pushed_at":"2018-08-02T21:03:03.000Z","size":554,"stargazers_count":23,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T05:41:51.065Z","etag":null,"topics":["generalized-linear-models","linear-models","quantitative-methods","regression","statistics","tidyversity"],"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/mkearney.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"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}},"created_at":"2018-06-02T21:38:35.000Z","updated_at":"2023-08-04T00:26:29.000Z","dependencies_parsed_at":"2024-01-19T14:22:57.385Z","dependency_job_id":"1d8b486a-e5a7-4c28-8674-9ef7c1666d9d","html_url":"https://github.com/mkearney/tidyreg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkearney%2Ftidyreg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkearney%2Ftidyreg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkearney%2Ftidyreg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkearney%2Ftidyreg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkearney","download_url":"https://codeload.github.com/mkearney/tidyreg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557844,"owners_count":21124165,"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":["generalized-linear-models","linear-models","quantitative-methods","regression","statistics","tidyversity"],"created_at":"2024-08-02T06:00:53.000Z","updated_at":"2025-09-26T15:22:30.618Z","avatar_url":"https://github.com/mkearney.png","language":"R","funding_links":[],"categories":["R"],"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 setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\",\n  eval = TRUE\n)\noptions(width = 100)\npolcom \u003c- tidyversity::polcom\n```\n# tidyreg \u003cimg src=\"man/figures/logo.png\" width=\"160px\" align=\"right\" /\u003e \n\n[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n\n🎓 Tidy tools for academics\n\n\n## \\*\\*\\* This package is in very early development. Feedback is encouraged!!! \\*\\*\\*\n\n## Installation\n\n\u003c!-- You can install the released version of tidyreg from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"tidyreg\")\n```\n--\u003e\n\nInstall the development version from [Github](https://github.com/mkearney/tidyreg) with:\n\n```{r install, eval=FALSE}\n## install devtools if not already\nif (!requireNamespace(\"devtools\", quietly = TRUE)) {\n  install.packages(\"devtools\")\n}\n## install tidyreg from Github\ndevtools::install_github(\"mkearney/tidyreg\")\n```\n\nLoad the package (it, of course, plays nicely with tidyverse).\n\n```{r library}\n## load tidyverse\nlibrary(tidyverse)\n\n## load tidyreg\nlibrary(tidyreg)\n```\n\n## Regression models\n\n### Ordinary Least Squares (OLS)\n\nConduct an Ordinary Least Squares (OLS) regression analysis.\n\n```{r ols}\npolcom %\u003e%\n  tidy_regression(follow_trump ~ news_1 + ambiv_sexism_1) %\u003e%\n  tidy_summary()\n```\n\n### Logistic (dichotomous)\n\nConduct a logistic regression analysis for binary (dichotomous) outcomes.\n\n```{r logistic}\npolcom %\u003e%\n  tidy_regression(follow_trump ~ news_1 + ambiv_sexism_1, type = \"logistic\") %\u003e%\n  tidy_summary()\n```\n\n### Poisson (count)\n\nConduct a poisson regression analysis for count data.\n\n```{r poisson}\npolcom %\u003e%\n  mutate(polarize = abs(therm_1 - therm_2)) %\u003e%\n  tidy_regression(polarize ~ news_1 + ambiv_sexism_1, type = \"poisson\") %\u003e%\n  tidy_summary()\n```\n\n### Negative binomial (overdispersed)\n\nConduct a negative binomial regression analysis for overdispersed count data.\n\n```{r, negbinom}\npolcom %\u003e%\n  mutate(polarize = abs(therm_1 - therm_2)) %\u003e%\n  tidy_regression(polarize ~ news_1 + ambiv_sexism_1, type = \"negbinom\") %\u003e%\n  tidy_summary()\n```\n\n### Robust and quasi- models\n\n```{r, robust_glm}\npolcom %\u003e%\n  mutate(polarize = abs(therm_1 - therm_2)) %\u003e%\n  tidy_regression(polarize ~ news_1 + ambiv_sexism_1, \n    type = \"quasipoisson\", robust = TRUE) %\u003e%\n  tidy_summary()\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkearney%2Ftidyreg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkearney%2Ftidyreg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkearney%2Ftidyreg/lists"}