AIC.evmOpt | R Documentation |
Compute AIC and (approximate) DIC for evmOpt
objects
## S3 method for class 'evmOpt'
AIC(object, penalized = FALSE, nsamp = 1000, DIC, WAIC, ..., k = 2)
object |
fit model object |
penalized |
whether to use the penalized log-likelihood |
nsamp |
Number of approximate Gaussian sample to use in computing DIC.
Defaults to |
DIC |
Logical. Whether to compute DIC. Defaults to |
WAIC |
Logical. Whether to compute WAIC. Defaults to |
... |
other arguments currently ignored |
k |
numeric, the penalty per parameter to be used; the
default |
If the object has class 'evmOpt', nsamp
random draws are
made from the Gaussian distribution with mean and covariance inferred from
the model object. The result will be an approximate DIC. Note that AIC should
not be trusted if priors are not flat. For example, if you use a regularizing
prior on xi, say xi ~ N(0, 0.25), AIC can be misleading and DIC should be
preferred. If the object has class 'evmSim', the actual posterior draws are
used in the computation. Also note that sometimes the optimizer returns
an approximatae covariance that is not postive-semidefinite, in which case
the DIC will be reported as NA.
The AIC and DIC
AIC
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.