postmode | R Documentation |
Calculate the posterior mode from an MCMC sample for “fevd” objects.
postmode(x, burn.in = 499, verbose = FALSE, ...)
## S3 method for class 'fevd'
postmode(x, burn.in = 499, verbose = FALSE, ...)
x |
An object of class “fevd” where component |
burn.in |
The furst burn.in samples from the posterior distribution will be removed before calculation. |
verbose |
logical, should progress information be printed to the screen. |
... |
Not used. |
The log-likelihood and (log) prior is calculated for every sample from the chain, and added together, giving h
. The parameters from the sample that yield the maximum value for h
are returned. If more than one set of parameters yield a maximum, their average is returned.
A named numeric vector is returned giving the paramter values.
Eric Gilleland
fevd
, findpars
data(ftcanmax)
fit <- fevd(Prec, ftcanmax, method="Bayesian", iter = 1000, verbose=TRUE)
postmode(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.