Loading Stan and setting options
We’ll use the Pulse
data we looked at last class.
Our response (/target/dependent) variable will be
Active
, a person’s pulse rate after a brief period of
moderate exercise (three laps up and down a set of stairs).
Prior predictive distribution on the actual bpm scale
Now we’ll actually generate samples from the posterior distribution
As before we can examine posterior intervals for the parameters
Bivariate scatterplots of the posterior distributions
Posterior predictive intervals