calculate_ess | R Documentation |
This function returns the effective sample size (ESS) for each location.
For each column of the weight matrix weight_mat
, the ESS component is computed as
(∑_{i=1}^{N} w_{i}^2 )^{-1}
where N is the number of sampled parameter values for each location.
calculate_ess(weight_mat, log)
weight_mat |
The weight matrix. A N x L matrix with L the number of locations and N the number of sampled parameter values. |
log |
logical indicating if the weights are on the log scale. |
A vector containing the ESS value for each location.
compute_weight_matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.