R/sampling.R
accept_rate.Rd
Here the acceptance rate is defined as the rate of accepting newly generated particles for individuals random effects. That is the number of samples where a newly generated particle was accepted / the number of samples.
accept_rate(pmwgs, window_size = 200)
The sampler object (containing random effects) with which we are working
The size of the window to calculate acceptance rate over
A vector with the acceptance rate for each subject for the last X samples