estimate.ESS: Estimation of effective sample size
Description
Estimation of effective sample size
Usage
estimate.ESS(mesh, Y, ind = NULL, trace = FALSE)
Value
Estimate of the effective sample size
Arguments
- mesh
INLA mesh
- Y
data
- ind
index of the data locations in the mesh
- trace
If TRUE
, a formula based on the trace is used, otherwise the inverse correlation is used
Details
The functions computes the effective sample size as \(trace(Q^{-1})/trace(Q*Q)\)
as in Bretherton et al. (1999), Journal of Climate.