Skip to content

Instantly share code, notes, and snippets.

@eveskew
eveskew / discrete_missingness_multiple_cats.R
Created December 4, 2018 20:12
Discrete missing values in Stan when the number of categories > 2
# Categorical missing data in Stan
# Demonstrated with three categories
# Code and ideas adapted from @rmcelreath
# https://gist.github.com/rmcelreath/9406643583a8c99304e459e644762f82
# Code and ideas discussed with @dmontecino
# https://gist.github.com/dmontecino/b804853e4b36a57990a7108a35201cf5