From 6d657a45f1b42c71cc6b5d43322d218e540ebc39 Mon Sep 17 00:00:00 2001 From: Jose Storopoli Date: Wed, 10 Aug 2022 18:31:59 -0300 Subject: [PATCH] Ordinal regression (#55) * added esoph dataset * renamed everything to 01-10 and added template of ordinal * added CairoMakie and AoG * changed ordering of the other content * draft ordinal-regression * added CategoricalArrays and Bijectors * final draft ordinal-regression * fix date in ordinal_reg --- Project.toml | 4 + README.md | 27 +- _layout/pgwrap.html | 25 +- _literate/{1_why_Julia.jl => 01_why_Julia.jl} | 0 .../{2_bayes_stats.jl => 02_bayes_stats.jl} | 0 _literate/{3_prob_dist.jl => 03_prob_dist.jl} | 0 _literate/{4_Turing.jl => 04_Turing.jl} | 0 _literate/{5_MCMC.jl => 05_MCMC.jl} | 0 .../{6_linear_reg.jl => 06_linear_reg.jl} | 0 .../{7_logistic_reg.jl => 07_logistic_reg.jl} | 0 _literate/08_ordinal_reg.jl | 450 ++++++++++++++++++ _literate/{8_count_reg.jl => 09_count_reg.jl} | 2 +- .../{9_robust_reg.jl => 10_robust_reg.jl} | 2 +- ...evel_models.jl => 11_multilevel_models.jl} | 0 ...1_Turing_tricks.jl => 12_Turing_tricks.jl} | 0 .../{12_epi_models.jl => 13_epi_models.jl} | 0 datasets/esoph.csv | 89 ++++ index.md | 27 +- pages/{1_why_Julia.md => 01_why_Julia.md} | 2 +- pages/{2_bayes_stats.md => 02_bayes_stats.md} | 2 +- pages/{3_prob_dist.md => 03_prob_dist.md} | 2 +- pages/{4_Turing.md => 04_Turing.md} | 2 +- pages/{5_MCMC.md => 05_MCMC.md} | 2 +- pages/{6_linear_reg.md => 06_linear_reg.md} | 2 +- .../{7_logistic_reg.md => 07_logistic_reg.md} | 2 +- pages/08_ordinal_reg.md | 9 + pages/{8_count_reg.md => 09_count_reg.md} | 2 +- pages/{9_robust_reg.md => 10_robust_reg.md} | 2 +- ...evel_models.md => 11_multilevel_models.md} | 2 +- ...1_Turing_tricks.md => 12_Turing_tricks.md} | 2 +- pages/{12_epi_models.md => 13_epi_models.md} | 2 +- 31 files changed, 607 insertions(+), 52 deletions(-) rename _literate/{1_why_Julia.jl => 01_why_Julia.jl} (100%) rename _literate/{2_bayes_stats.jl => 02_bayes_stats.jl} (100%) rename _literate/{3_prob_dist.jl => 03_prob_dist.jl} (100%) rename _literate/{4_Turing.jl => 04_Turing.jl} (100%) rename _literate/{5_MCMC.jl => 05_MCMC.jl} (100%) rename _literate/{6_linear_reg.jl => 06_linear_reg.jl} (100%) rename _literate/{7_logistic_reg.jl => 07_logistic_reg.jl} (100%) create mode 100644 _literate/08_ordinal_reg.jl rename _literate/{8_count_reg.jl => 09_count_reg.jl} (99%) rename _literate/{9_robust_reg.jl => 10_robust_reg.jl} (99%) rename _literate/{10_multilevel_models.jl => 11_multilevel_models.jl} (100%) rename _literate/{11_Turing_tricks.jl => 12_Turing_tricks.jl} (100%) rename _literate/{12_epi_models.jl => 13_epi_models.jl} (100%) create mode 100644 datasets/esoph.csv rename pages/{1_why_Julia.md => 01_why_Julia.md} (77%) rename pages/{2_bayes_stats.md => 02_bayes_stats.md} (76%) rename pages/{3_prob_dist.md => 03_prob_dist.md} (77%) rename pages/{4_Turing.md => 04_Turing.md} (78%) rename pages/{5_MCMC.md => 05_MCMC.md} (79%) rename pages/{6_linear_reg.md => 06_linear_reg.md} (76%) rename pages/{7_logistic_reg.md => 07_logistic_reg.md} (76%) create mode 100644 pages/08_ordinal_reg.md rename pages/{8_count_reg.md => 09_count_reg.md} (77%) rename pages/{9_robust_reg.md => 10_robust_reg.md} (76%) rename pages/{10_multilevel_models.md => 11_multilevel_models.md} (73%) rename pages/{11_Turing_tricks.md => 12_Turing_tricks.md} (75%) rename pages/{12_epi_models.md => 13_epi_models.md} (76%) diff --git a/Project.toml b/Project.toml index 918e0b2d..3e37b559 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,10 @@ [deps] +AlgebraOfGraphics = "cbdf2221-f076-402e-a563-3d30da359d67" BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" +Bijectors = "76274a88-744f-5084-9051-94815aaf08c4" CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" +CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0" +CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597" Chain = "8be319e6-bccf-4806-a6f7-6fae938471bc" DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa" diff --git a/README.md b/README.md index 6495f35e..0ce5d480 100644 --- a/README.md +++ b/README.md @@ -89,18 +89,19 @@ To configure a local environment: ## Tutorials -1. [**Why Julia?**](https://storopoli.github.io/Bayesian-Julia/pages/1_why_Julia/) -2. [**What is Bayesian Statistics?**](https://storopoli.github.io/Bayesian-Julia/pages/2_bayes_stats/) -3. [**Common Probability Distributions**](https://storopoli.github.io/Bayesian-Julia/pages/3_prob_dist/) -4. [**How to use Turing**](https://storopoli.github.io/Bayesian-Julia/pages/4_Turing/) -5. [**Markov Chain Monte Carlo (MCMC)**](https://storopoli.github.io/Bayesian-Julia/pages/5_MCMC/) -6. [**Bayesian Linear Regression**](https://storopoli.github.io/Bayesian-Julia/pages/6_linear_reg/) -7. [**Bayesian Logistic Regression**](https://storopoli.github.io/Bayesian-Julia/pages/7_logistic_reg/) -8. [**Bayesian Regression with Count Data**](https://storopoli.github.io/Bayesian-Julia/pages/8_count_reg/) -9. [**Robust Bayesian Regression**](https://storopoli.github.io/Bayesian-Julia/pages/9_robust_reg/) -10. [**Multilevel Models (a.k.a. Hierarchical Models)**](https://storopoli.github.io/Bayesian-Julia/pages/10_multilevel_models/) -11. [**Computational Tricks with Turing (Non-Centered Parametrization and QR Decomposition)**](https://storopoli.github.io/Bayesian-Julia/pages/11_Turing_tricks/) -12. [**Epidemiological Models using ODE Solvers in Turing**](https://storopoli.github.io/Bayesian-Julia/pages/12_epi_models/) +1. [**Why Julia?**](https://storopoli.github.io/Bayesian-Julia/pages/01_why_Julia/) +2. [**What is Bayesian Statistics?**](https://storopoli.github.io/Bayesian-Julia/pages/02_bayes_stats/) +3. [**Common Probability Distributions**](https://storopoli.github.io/Bayesian-Julia/pages/03_prob_dist/) +4. [**How to use Turing**](https://storopoli.github.io/Bayesian-Julia/pages/04_Turing/) +5. [**Markov Chain Monte Carlo (MCMC)**](https://storopoli.github.io/Bayesian-Julia/pages/05_MCMC/) +6. [**Bayesian Linear Regression**](https://storopoli.github.io/Bayesian-Julia/pages/06_linear_reg/) +7. [**Bayesian Logistic Regression**](https://storopoli.github.io/Bayesian-Julia/pages/07_logistic_reg/) +8. [**Bayesian Ordinal Regression**](https://storopoli.github.io/Bayesian-Julia/pages/08_ordinal_reg/) +9. [**Bayesian Regression with Count Data**](https://storopoli.github.io/Bayesian-Julia/pages/09_count_reg/) +10. [**Robust Bayesian Regression**](https://storopoli.github.io/Bayesian-Julia/pages/10_robust_reg/) +11. [**Multilevel Models (a.k.a. Hierarchical Models)**](https://storopoli.github.io/Bayesian-Julia/pages/11_multilevel_models/) +12. [**Computational Tricks with Turing (Non-Centered Parametrization and QR Decomposition)**](https://storopoli.github.io/Bayesian-Julia/pages/12_Turing_tricks/) +13. [**Epidemiological Models using ODE Solvers in Turing**](https://storopoli.github.io/Bayesian-Julia/pages/13_epi_models/) ## Datasets @@ -193,4 +194,4 @@ The references are divided in **books**, **papers**, **software**, and **dataset This content is licensed under [Creative Commons Attribution-ShareAlike 4.0 Internacional](http://creativecommons.org/licenses/by-sa/4.0/). -[![CC BY-SA 4.0](https://licensebuttons.net/l/by-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-sa/4.0/) \ No newline at end of file +[![CC BY-SA 4.0](https://licensebuttons.net/l/by-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-sa/4.0/) diff --git a/_layout/pgwrap.html b/_layout/pgwrap.html index 5bcbc2f8..73ef7995 100644 --- a/_layout/pgwrap.html +++ b/_layout/pgwrap.html @@ -11,18 +11,19 @@