accept_rate: Return the acceptance rate for new particles across all...

View source: R/sampling.R

accept_rateR 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


pmwg documentation built on May 29, 2024, 12:09 p.m.