accept_rate {pmwg} | R Documentation |
Return the acceptance rate for new particles across all subjects
Description
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.
Usage
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
[Package pmwg version 0.2.7 Index]