{"id":13686871,"url":"https://github.com/eigenfoo/tests-as-linear","last_synced_at":"2025-04-11T19:53:16.129Z","repository":{"id":35617211,"uuid":"193326707","full_name":"eigenfoo/tests-as-linear","owner":"eigenfoo","description":"Python port of \"Common statistical tests are linear models\" by Jonas Kristoffer Lindeløv.","archived":false,"fork":false,"pushed_at":"2024-08-21T00:17:21.000Z","size":5174,"stargazers_count":90,"open_issues_count":7,"forks_count":23,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-13T08:12:41.227Z","etag":null,"topics":["linear-models","python","scipy","statistical-tests","statsmodels"],"latest_commit_sha":null,"homepage":"https://eigenfoo.xyz/tests-as-linear/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eigenfoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-06-23T08:59:28.000Z","updated_at":"2024-12-27T15:25:37.000Z","dependencies_parsed_at":"2024-09-25T00:34:25.663Z","dependency_job_id":null,"html_url":"https://github.com/eigenfoo/tests-as-linear","commit_stats":{"total_commits":36,"total_committers":1,"mean_commits":36.0,"dds":0.0,"last_synced_commit":"7c8c51ec4f75f688666f1ec7210183ab5fe15778"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigenfoo%2Ftests-as-linear","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigenfoo%2Ftests-as-linear/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigenfoo%2Ftests-as-linear/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigenfoo%2Ftests-as-linear/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eigenfoo","download_url":"https://codeload.github.com/eigenfoo/tests-as-linear/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239808521,"owners_count":19700451,"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":["linear-models","python","scipy","statistical-tests","statsmodels"],"created_at":"2024-08-02T15:00:42.269Z","updated_at":"2025-02-20T09:11:33.871Z","avatar_url":"https://github.com/eigenfoo.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# _Common statistical tests are linear models_: Python port\n\n[![Build Status](https://travis-ci.com/eigenfoo/tests-as-linear.svg?branch=master)](https://travis-ci.com/eigenfoo/tests-as-linear)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/eigenfoo/tests-as-linear/master?filepath=tests-as-linear.ipynb)\n\nA Python port of Jonas Kristoffer Lindeløv's post [_Common statistical tests are\nlinear models (or: how to teach\nstats)_](https://lindeloev.github.io/tests-as-linear/), which originally had\naccompanying code in R.\n\n## Notes on Python port\n\nThe original post used R's built-in functions to verify that the linear models\nwere indeed equivalent to the statistical tests (by showing that the p-values,\nt-values, and other such statistics, were the same in either case). In this\nPython port, we instead verify that `scipy.stats` functions and `smf.ols` output\nagree.\n\nThe original R post had [four\nappendices](https://github.com/lindeloev/tests-as-linear/tree/master/simulations),\neach of which demonstrated (through numerical simulation) that a common\nstatistical test was well-approximated by a linear model. These simulations have\nnot been ported to Python (yet!). This is [an outstanding\nissue](https://github.com/eigenfoo/tests-as-linear/issues/14). In the meantime,\nplease refer to the [original appendices\nupstream](https://github.com/lindeloev/tests-as-linear/tree/master/simulations)\nfor the simulations.\n\nFinally, certain statistical functions and tests are supported by neither\n`statsmodels` or `scipy`, the two statistical Python libraries used in this\nport. R code with no simple Python equivalent (mainly in sections 6 and 7,\n\"Three or more means\" and \"Proportions: Chi-square is a log-linear model\") has\nnot been ported. Such code has been noted in yellow warning boxes.\n\n## Contributing\n\nPlease refer to [the contributing\nguide](https://github.com/eigenfoo/tests-as-linear/blob/master/CONTRIBUTING.md)\nfor project structure information and development instructions.\n\n## License\n\nThis work is licensed under a Creative Commons Attribution 4.0 International\nLicense. Please refer to\n[`LICENSE.txt`](https://github.com/eigenfoo/tests-as-linear/blob/master/LICENSE.txt)\nfor more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feigenfoo%2Ftests-as-linear","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feigenfoo%2Ftests-as-linear","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feigenfoo%2Ftests-as-linear/lists"}