{"id":13688684,"url":"https://github.com/easystats/effectsize","last_synced_at":"2025-05-16T01:06:46.465Z","repository":{"id":35176626,"uuid":"213554808","full_name":"easystats/effectsize","owner":"easystats","description":":dragon: Compute and work with indices of effect size and standardized parameters","archived":false,"fork":false,"pushed_at":"2025-05-01T00:53:27.000Z","size":36689,"stargazers_count":346,"open_issues_count":20,"forks_count":24,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-14T03:25:25.690Z","etag":null,"topics":["anova","cohens-d","compute","conversion","correlation","effect-size","effectsize","hacktoberfest","hedges-g","interpretation","r","standardization","standardized","statistics"],"latest_commit_sha":null,"homepage":"https://easystats.github.io/effectsize/","language":"PostScript","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/easystats.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"easystats"}},"created_at":"2019-10-08T05:20:04.000Z","updated_at":"2025-05-07T11:43:11.000Z","dependencies_parsed_at":"2023-02-16T19:00:58.317Z","dependency_job_id":"9d292efc-8a56-4fe7-8d53-8d83bd897ddb","html_url":"https://github.com/easystats/effectsize","commit_stats":{"total_commits":1594,"total_committers":18,"mean_commits":88.55555555555556,"dds":"0.43161856963613554","last_synced_commit":"3446979fc6507dbbf34744567283914b222cc4c0"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easystats%2Feffectsize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easystats%2Feffectsize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easystats%2Feffectsize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easystats%2Feffectsize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easystats","download_url":"https://codeload.github.com/easystats/effectsize/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101575,"owners_count":22014903,"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":["anova","cohens-d","compute","conversion","correlation","effect-size","effectsize","hacktoberfest","hedges-g","interpretation","r","standardization","standardized","statistics"],"created_at":"2024-08-02T15:01:19.983Z","updated_at":"2025-05-16T01:06:41.456Z","avatar_url":"https://github.com/easystats.png","language":"PostScript","readme":"---\noutput: github_document\n---\n\n# effectsize: Indices of Effect Size \u003cimg src=\"man/figures/logo.png\" align=\"right\" width=\"120\" /\u003e\n\n```{r setup, echo = FALSE, warning=FALSE, message=FALSE}\nlibrary(effectsize)\n\noptions(digits = 3)\n\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  dpi = 450,\n  fig.path = \"man/figures/\"\n)\n\nset.seed(111)\n```\n\n[![DOI](https://joss.theoj.org/papers/10.21105/joss.02815/status.svg/)](https://doi.org/10.21105/joss.02815)\n[![downloads](https://cranlogs.r-pkg.org/badges/effectsize)](https://cran.r-project.org/package=effectsize/)\n[![total](https://cranlogs.r-pkg.org/badges/grand-total/effectsize)](https://cran.r-project.org/package=effectsize/)\n\n\n***Significant is just not enough!***\n\nThe goal of this package is to provide utilities to work with indices of effect size and standardized parameters, allowing computation and conversion of indices such as Cohen's *d*, *r*, odds-ratios, etc.\n\n\n## Installation\n\n[![CRAN](https://www.r-pkg.org/badges/version/effectsize)](https://cran.r-project.org/package=effectsize/)\n[![effectsize status badge](https://easystats.r-universe.dev/badges/effectsize/)](https://easystats.r-universe.dev/)\n[![R-CMD-check](https://github.com/easystats/effectsize/workflows/R-CMD-check/badge.svg?branch=main)](https://github.com/easystats/effectsize/actions)\n[![pkgdown](https://github.com/easystats/effectsize/workflows/pkgdown/badge.svg/)](https://github.com/easystats/effectsize/actions/)\n[![Codecov test coverage](https://codecov.io/gh/easystats/effectsize/branch/main/graph/badge.svg/)](https://app.codecov.io/gh/easystats/effectsize?branch=main/)\n\nRun the following to install the stable release of **effectsize** from CRAN:\n\n```{r install-CRAN, warning=FALSE, message=FALSE, eval=FALSE}\ninstall.packages(\"effectsize\")\n```\n\nOr you can install the latest development version from [*R-universe*](https://easystats.r-universe.dev):\n\n```{r install-R-universe, warning=FALSE, message=FALSE, eval=FALSE}\ninstall.packages(\"effectsize\", repos = \"https://easystats.r-universe.dev/\")\n```\n\n\u003c!-- Or from *GitHub*: --\u003e\n\n\u003c!-- ```{r, warning=FALSE, message=FALSE, eval=FALSE} --\u003e\n\u003c!-- if (!require(\"remotes\")) install.packages(\"remotes\") --\u003e\n\u003c!-- remotes::install_github(\"easystats/effectsize\") --\u003e\n\u003c!-- ``` --\u003e\n\n## Documentation\n\n[![Documentation](https://img.shields.io/badge/documentation-effectsize-orange.svg?colorB=E91E63/)](https://easystats.github.io/effectsize/)\n[![Blog](https://img.shields.io/badge/blog-easystats-orange.svg?colorB=FF9800/)](https://easystats.github.io/blog/posts/)\n[![Features](https://img.shields.io/badge/features-effectsize-orange.svg?colorB=2196F3/)](https://easystats.github.io/effectsize/reference/index.html)\n\nClick on the buttons above to access the package [**documentation**](https://easystats.github.io/effectsize/) and the [**easystats blog**](https://easystats.github.io/blog/posts/), and check-out these vignettes:\n\n- **Effect Sizes**  \n  - [**Standardized Differences**](https://easystats.github.io/effectsize/articles/standardized_differences.html)  \n  - [**For Contingency Tables**](https://easystats.github.io/effectsize/articles/xtabs.html)  \n  - [**ANOVA Effect Sizes**](https://easystats.github.io/effectsize/articles/anovaES.html)\n- **Effect Sizes Conversion**    \n  - [**Between Effect Sizes**](https://easystats.github.io/effectsize/articles/convert_r_d_OR.html)  \n  - [**Between Probabilities and Odds and Risk Ratios**](https://easystats.github.io/effectsize/articles/convert_p_OR_RR.html)  \n  - [**Effect Size from Test Statistics**](https://easystats.github.io/effectsize/articles/from_test_statistics.html)\n- [**Plotting Functions for the 'effectsize' Package**](https://easystats.github.io/see/articles/effectsize.html)  \n- [**Automated Interpretation of Indices of Effect Size**](https://easystats.github.io/effectsize/articles/interpret.html)\n\n\n\n# Features\n\nThis package is focused on indices of effect size. Check out the package website for [**a full list of features and functions** provided by `effectsize`](https://easystats.github.io/effectsize/reference/index.html).\n\n```{r load, message=FALSE, warning=FALSE}\nlibrary(effectsize)\noptions(es.use_symbols = TRUE) # get nice symbols when printing! (On Windows, requires R \u003e= 4.2.0)\n```\n\n\u003e **Tip:**\n\u003e\n\u003e **Instead of `library(effectsize)`, use `library(easystats)`.**\n\u003e **This will make all features of the  easystats-ecosystem available.**\n\u003e\n\u003e **To stay updated, use `easystats::install_latest()`.**\n\n\n## Effect Size Computation\n\nThe package provides functions to compute indices of effect size.\n\n### Standardized Differences (Cohen's *d*, Hedges' *g*, Glass' *delta*)\n\n```{r d, warning=FALSE, message=FALSE}\ncohens_d(mpg ~ am, data = mtcars)\n\nhedges_g(mpg ~ am, data = mtcars)\n\nglass_delta(mpg ~ am, data = mtcars)\n```\n\n`effectsize` also provides effect sizes for *paired standardized differences*, *rank tests*, *common language effect sizes* and more...\n\n### Contingency Tables\n\n```{r}\n# Dependence\nphi(mtcars$am, mtcars$vs)\n\ncramers_v(mtcars$am, mtcars$cyl)\n\n# Goodness-of-fit\nfei(table(mtcars$cyl), p = c(0.1, 0.3, 0.6))\n```\n\n### ANOVAs (Eta\u003csup\u003e2\u003c/sup\u003e, Omega\u003csup\u003e2\u003c/sup\u003e, ...)\n\n```{r aov, warning=FALSE, message=FALSE}\nmodel \u003c- aov(mpg ~ factor(gear), data = mtcars)\n\neta_squared(model)\n\nomega_squared(model)\n\nepsilon_squared(model)\n```\n\nAnd more...\n\n\n\u003c!-- ### Regression Models (Standardized Parameters) --\u003e\n\n\u003c!-- Importantly, `effectsize` also provides [advanced methods](https://easystats.github.io/effectsize/articles/standardize_parameters.html) to compute standardized parameters for regression models. --\u003e\n\n\u003c!-- ```{r beta, warning=FALSE, message=FALSE} --\u003e\n\u003c!-- m \u003c- lm(rating ~ complaints + privileges + advance, data = attitude) --\u003e\n\n\u003c!-- standardize_parameters(m) --\u003e\n\u003c!-- ``` --\u003e\n\n\u003c!-- Also, models can be re-fit with standardized data: --\u003e\n\n\u003c!-- ```{r std-model, warning=FALSE, message=FALSE} --\u003e\n\u003c!-- standardize(m) --\u003e\n\u003c!-- ``` --\u003e\n\n## Effect Size Conversion\n\nThe package also provides ways of converting between different effect sizes.\n\n```{r convert-between, warning=FALSE, message=FALSE}\nd_to_r(d = 0.2)\n\noddsratio_to_riskratio(2.6, p0 = 0.4)\n```\n\nAnd for recovering effect sizes from test statistics.\n\n```{r convert-stat, warning=FALSE, message=FALSE}\nF_to_d(15, df = 1, df_error = 60)\n\nF_to_r(15, df = 1, df_error = 60)\n\nF_to_eta2(15, df = 1, df_error = 60)\n```\n\n## Effect Size Interpretation\n\nThe package allows for an automated interpretation of different indices. \n\n```{r interp-r, warning=FALSE, message=FALSE}\ninterpret_r(r = 0.3)\n```\n\nDifferent sets of \"rules of thumb\" are implemented ([**guidelines are detailed here**](https://easystats.github.io/effectsize/articles/interpret.html)) and can be easily changed.\n\n\n```{r interp-d, warning=FALSE, message=FALSE}\ninterpret_cohens_d(d = 0.45, rules = \"cohen1988\")\n\ninterpret_cohens_d(d = 0.45, rules = \"gignac2016\")\n```\n\n\n### Citation\n\nIn order to cite this package, please use the following citation:\n\n  * Ben-Shachar M, Lüdecke D, Makowski D (2020). effectsize: Estimation of Effect Size Indices and Standardized Parameters. _Journal of Open Source Software_, *5*(56), 2815. doi: 10.21105/joss.02815\n  \nCorresponding BibTeX entry:\n\n```\n@Article{,\n  title = {{e}ffectsize: Estimation of Effect Size Indices and Standardized Parameters},\n  author = {Mattan S. Ben-Shachar and Daniel Lüdecke and Dominique Makowski},\n  year = {2020},\n  journal = {Journal of Open Source Software},\n  volume = {5},\n  number = {56},\n  pages = {2815},\n  publisher = {The Open Journal},\n  doi = {10.21105/joss.02815},\n  url = {https://doi.org/10.21105/joss.02815}\n}\n```\n\n# Contributing and Support\n\nIf you have any questions regarding the the functionality of the package, you may either contact us via email or also [file an issue](https://github.com/easystats/effectsize/issues/). Anyone wishing to contribute to the package by adding functions, features, or in another way, please follow [this guide](https://github.com/easystats/effectsize/blob/main/.github/CONTRIBUTING.md/) and our [code of conduct](https://github.com/easystats/effectsize/blob/main/.github/CODE_OF_CONDUCT.md/).\n","funding_links":["https://github.com/sponsors/easystats"],"categories":["R","PostScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasystats%2Feffectsize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasystats%2Feffectsize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasystats%2Feffectsize/lists"}