Hi all,
I'm working a a spatial model. The default samplers are:
posterior_predictive sampler (2301)
- z[] (2288 elements)
- x[] (13 multivariate elements)
binary sampler (9882)
- z.cam[] (440 elements)
- z[] (9442 elements)
RW_block sampler (85)
- x[] (85 multivariate elements)
RW sampler (77)
...
I get very bad mixing and want to adjust 'adaptFactorExponent' for the RW_block sampler. x[] is an array of the spatial random effects for 138 sites, 14 occasions, and 7 species. Because some site-occasion combinations are not sampled, some elements of x[] have a posterior_predictive sampler. It will be extremely complicated to avoid this since we are not allowed to use vector indices to vectors and matrices (for dmnorm()). The following fails,
conf$removeSamplers('x[1:138, 1:14, 1:7]')
conf$addSampler('x[1:138, 1:14, 1:7]', 'RW_block', control = list(adaptFactorExponent = 0.25))
because that removes the posterior_predictive samplers.
Is there an easy way to access only the nodes in x[] that have the 'RW_block' sampler?
Cheers,
Torbjørn