accept_rate | R Documentation |
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)
pmwgs |
The sampler object (containing random effects) with which we are working |
window_size |
The size of the window to calculate acceptance rate over |
A vector with the acceptance rate for each subject for the last X samples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.