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)

Arguments

pmwgs

The sampler object (containing random effects) with which we are working

window_size

The size of the window to calculate acceptance rate over

Value

A vector with the acceptance rate for each subject for the last X samples