This is a real newbie question. I am returning to learning Stan in R. The sample code in the help for the rstan::stan function provides two “examples,” but I simply don’t understand the first example:
y ~ normal(0, 1);
y ~ double_exponential(0, 2);
This code compiles just fine and appears to estimate the mean and std of an rnorm(0,1) distribution and the similar for a double_exponential distribution. But there is no data block. Where and how are the “sample” data defined? Is there a set of default length data of the appropriate distribution supplied by the two distribution calls?
I.m sorry to be so dense. Thanks to any that can explain this to me.