The Wing-Kristofferson model is a simple model of the behavior of a human trying to drum out a steady beat (that is, trying to mimic a metronome). Let $y_i$ be the $i$th interval between two drum ...
Does stan (in particular, rstan) have built-in facilities to generate predictive posterior distributions? It's not hard to generate the distribution from the stan fit, but I'd rather not reinvent the ...
How do I fit a bayesian multilevel model with with AR(1) correlation structure? I am trying to teach myself bayesian modelling and I am wondering how you could specify a multilevel model with an ...
EDIT: I've modified my STAN code and it looks like I am getting numbers close to using R's arima. The original code, now moved to the end, was incorrect. I've been ...
I am trying to build a model where the response is a proportion (it is actually the share of votes a party gets in constituencies). Its distribution is not normal, so I decided to model it with a beta ...
I've just started to learn to use Stan and rstan. Unless I've always been confused about how JAGS/BUGS worked, I thought you always had to define a prior ...