computeWAIC {Hmsc} | R Documentation |
computeWAIC
Description
Computes the value of WAIC (Widely Applicable Information Criterion) for the Hmsc
model
Usage
computeWAIC(hM, ghN = 11, byColumn = FALSE)
Arguments
hM |
a fitted |
ghN |
order of Gauss-Hermite quadrature for approximate numerical integration |
byColumn |
describes whether WAIC is computed for the entire model |
Details
The result is exact for normal and probit observational models. For Poisson-type observational model the result is obtained through numerical integration using Gauss-Hermite quadrature.
Value
the scalar WAIC
Examples
# Compute WAIC of previously sampled Hmsc object
WAIC = computeWAIC(TD$m)
[Package Hmsc version 3.0-13 Index]