Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrtkp9993/Statistical-Modeling-Examples

Basic statistical modelling examples.
https://github.com/mrtkp9993/Statistical-Modeling-Examples

analysis-of-variance anova matplotlib pandas pystan python python3 r-language r-markdown r-programming regression-analysis regression-models seaborn stan statistical-analysis statistical-inference statistical-modeling

Last synced: 3 months ago
JSON representation

Basic statistical modelling examples.

Awesome Lists containing this project

README

        

# Statistical Modeling Examples

All we need is just


[![GitHub license](https://img.shields.io/github/license/mrtkp9993/Statistical-Modelling-Examples.svg)](https://github.com/mrtkp9993/Statistical-Modelling-Examples/blob/master/LICENSE)
[![DOI](https://zenodo.org/badge/143592387.svg)](https://zenodo.org/badge/latestdoi/143592387)

---

## Case Studies

* Diabetes dataset: [Dataset info](http://biostat.mc.vanderbilt.edu/wiki/pub/Main/DataSets/diabetes.html), [Markdown](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/case_studies/Case_Study_1_-_Diabetes_dataset.md).

## Examples

PyStan examples includes these methods:

* Linear Regression [Model](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/models/linearRegression.stan), [Script](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/scripts/linearRegression.py).
* Multiple Linear Regression [Model](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/models/multipleLinearRegression.stan), [Script](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/scripts/multipleLinearRegression.py).
* Robust Regression [Model](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/models/robustRegression.stan), [Script](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/scripts/robustRegression.py).
* Logistic Regression [Model](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/models/logisticRegression.stan), [Script](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/scripts/logisticRegression.py).
* Multinomial Logistic Regression [Model](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/models/multinomialLogisticRegression.stan), [Script](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/scripts/multinomialLogisticRegression.py).
* Ordered Logistic Regression [Model](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/models/orderedLogisticRegression.stan), [Script](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/scripts/orderedLogisticRegression.py).
* One-way ANOVA [Model](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/models/onewayANOVA.stan), [Script](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/scripts/onewayANOVA.py).
* Two-way ANOVA [Model](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/models/twowayANOVA.stan), [Script](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/scripts/twowayANOVA.py).

R examples includes these methods:

* Factor analysis [Markdown](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/notebooks/Factor_Analysis.md).
* Correlation analysis [Markdown](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/notebooks/Correlation_Analysis.md).
* Multiple Linear Regression with interaction terms [Markdown](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/notebooks/Multiple_Linear_Regression_with_interaction_terms.md).
* Poisson Regression [Markdown](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/notebooks/Poisson_Regression.md).
* Bayes Factors [Markdown](https://github.com/mrtkp9993/Statistical-Modeling-Examples/blob/master/notebooks/Bayes_Factor.md).

## Useful Resources

### General

* Glossary of statistical terms [Link](https://www.stat.berkeley.edu/~stark/SticiGui/Text/gloss.htm).
* Statistical tests with Python [Link](https://machinelearningmastery.com/statistical-hypothesis-tests-in-python-cheat-sheet/).
* Michael Betancourt: “A Conceptual Introduction to Hamiltonian Monte Carlo”, 2017; arXiv:1701.02434.
* Hamiltonian Monte Carlo explained, [Link](http://arogozhnikov.github.io/2016/12/19/markov_chain_monte_carlo.html).

### Stan

* Stan Reference Manual [Link](https://github.com/stan-dev/stan/releases/download/v2.17.0/stan-reference-2.17.0.pdf).
* PyStan Getting Started [Link](https://pystan.readthedocs.io/en/latest/getting_started.html).
* Stan example models [Link](https://github.com/stan-dev/example-models/tree/master/misc).
* Prior choices [Link](https://github.com/stan-dev/stan/wiki/Prior-Choice-Recommendations).

### R

* R-bloggers [Link](https://www.r-bloggers.com/).
* Quick-R [Link](https://www.statmethods.net/index.html).

## Datasets

* R datasets [Link](https://vincentarelbundock.github.io/Rdatasets/datasets.html).
* Datasets for teaching [Link](https://www.sheffield.ac.uk/mash/data).

## Books

* Korner-Nievergelt, F., Korner-Nievergelt, P., Roth, T., Almasi, B., Felten, S. V., & Guélat, J. (2016). Bayesian data analysis in ecology using linear models with R, BUGS and Stan. Amsterdam: Elsevier/Academic Press.