Open alashworth opened 5 years ago
Issue by bob-carpenter Thursday Nov 19, 2015 at 19:56 GMT Originally opened as https://github.com/stan-dev/stan/issues/1697
Idea from Aki Vehtari on stan-dev:
In Stan 2.8, log density functions like normal_log() output the sum of the densities of their components (with appropriate broadcasting of scalars).
normal_log()
It would be nice to allow them to be specified to return a vector, for instance for WAIC or LOO calculations. Aki suggests somethign roughly like
log_lik <- normal_ld<norm=true, sum=false>(y | X * b, sigma);
or maybe with vec=true instead of sum=false.
vec=true
sum=false
The result of #1683 will help with implementation.
Issue by bob-carpenter Thursday Nov 19, 2015 at 19:56 GMT Originally opened as https://github.com/stan-dev/stan/issues/1697
Idea from Aki Vehtari on stan-dev:
In Stan 2.8, log density functions like
normal_log()
output the sum of the densities of their components (with appropriate broadcasting of scalars).It would be nice to allow them to be specified to return a vector, for instance for WAIC or LOO calculations. Aki suggests somethign roughly like
or maybe with
vec=true
instead ofsum=false
.The result of #1683 will help with implementation.