Occasional Divergences
  • Two brothers with a mostly Bayesian focus.
  • Home
  • About
Categories
All (7)
bayesian inference (4)
choice models (1)
hierarchical models (3)
index coding (1)
positron (1)
python (2)
quarto (1)
r (7)
stan (4)

Coding in R and Python with Positron
7 min
r
python
positron

Positron is a “next-generation data science IDE.” If RStudio is too specific and VS Code is too general, is Positron just right?

Marc Dotson
02 Jul 2024

Reproducible environments for R and Python
16 min
r
python

Reproducible environments are a pain, but {renv} makes things easy for R and works well with Python. Add pyenv and some venv, and you should be set for both R and Python.

Marc Dotson
07 Nov 2023

Coding discrete explanatory variables
9 min
index coding
bayesian inference
stan
r
There are a number of ways to code discrete explanatory variables. In this post, we explore the equivalence of using two of the most common ways: dummy coding and index…
Marc Dotson
08 Aug 2023

Quarto questions
10 min
quarto
r
Everyone is talking about Quarto. Maybe you’ve read some blogs or watched a presentation or two, but you still have questions. I’ve attempted to (briefly) provide some…
Marc Dotson
14 Oct 2022

Comparing choice model parameterizations
25 min
choice models
hierarchical models
bayesian inference
stan
r
Since choice is typically manifest as a non-binary discrete outcome and we care about modeling consumer heterogeneity, a hierarchical Bayesian multinomial logit model is our…
Marc Dotson
02 Sep 2020

Hierarchical models in Stan with a non-centered parameterization
20 min
hierarchical models
bayesian inference
stan
r
We build a hierarchical linear model with a multivariate population model. This added complexity will require us to re-express the model using what is known as a…
Marc Dotson
19 May 2020

Hierarchical models in Stan
27 min
hierarchical models
bayesian inference
stan
r
A gentle introduction to building hierarchical models in Stan via R and using a tidy approach whenever appropriate. This is not an introduction to Bayesian inference or…
Marc Dotson
31 Dec 2019
No matching items
  • Built with Quarto

 
  • © License