Hi everyone,
I have a model that I want to parallelize with map_rect. When I compare the output, the parameter estimates of the parallel and non-parallel versions are pretty similar (maybe not similar enough?), but the lp__ is different. I wonder how this happens. The map_rect version has a vector of “additional” parameters called ‘global_params’. I create it in the transformed parameters block like this:
vector[9] global_params;
global_params[1] = pdd1;
global_params[2] = pdd2;
global_params[3] = tmin_v;
global_params[4] = tmin_r;
global_params[5] = dtopt_v;
global_params[6] = dtopt_r;
global_params[7] = emt;
global_params[8] = sigma;
global_params[9] = smoothness;
so they don’t have extra priors. The global_params is what I give to the map_rect function.
Is there an obvious reason why lp__ should be different between the two versions?
Thanks a lot for any explanation or comments!
Cheers,
Friedrich

