weightedVariance {serrsBayes} | R Documentation |
Compute the weighted variance of the particles.
Description
This SMC estimate of the variance can be used to scale the bandwidth of adaptive, Gaussian random walk Metropolis-Hastings proposals.
Usage
weightedVariance(particles, log_weights, mean)
Arguments
particles |
|
log_weights |
logarithms of the importance weights of each particle. |
mean |
Vector of weighted means of each particle. |
Value
A vector of variances, one for each row.
See Also
[Package serrsBayes version 0.5-0 Index]