likelihood.initials | R Documentation |
Estimates the initial GEV or GP parameters of a time series required to start the fitting routine.
likelihood.initials(x, model = c("gev", "gpd"), use.skewness = TRUE)
x |
Time series of class xts or numeric. |
model |
String determining whether to calculate the initial parameters of the GEV ("gev") or GP ("gpd") function. Default = "gev" |
use.skewness |
Determines if the skewness is getting used to determine the initial shape parameter. Default = TRUE. |
Two main methods are used for the estimation: the L-moments method of Hosking & Wallis and an estimation using the first two moments of the Gumbel distribution. For the later one a modification was added: By looking at skewness of the time series x and with respect to some heuristic thresholds a shape parameter between -.4 and .2 is assigned for the GEV distribution. In case of the GP one, the sign of the skewness matches the sign of the series' shape parameter.
Warning: both methods do not work for samples with diverging (or pretty big) mean or variance.
If no working initial parameter combination could be found using those methods, the function will perform a constrained random walk on the parameters until a working pair is found.
Numerical vector containing the c( location, scale, shape ) estimates for method = "gev" or the c( scale, shape ) estimates for method = "gpd".
Philipp Mueller
Other optimization: fit.gev.default
,
fit.gev.list
, fit.gev.xts
,
fit.gev
, fit.gpd.default
,
fit.gpd.list
, fit.gpd.xts
,
fit.gpd
,
likelihood.augmented
,
likelihood.gradient.augmented
,
likelihood.gradient
,
likelihood
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.