March 2019
Beginner to intermediate
448 pages
13h 14m
English
STAN generates random numbers using the distribution that we specified in the generated_quantities part. It is important to stress that in OLS (the lm function) we do get point estimates for our predictions, but here, we will just be generating random numbers according to the posterior distribution of the predictions. Of course, for reporting purposes, we can just take the respective mean of each prediction (or any other relevant metric).
Read now
Unlock full access