fextreme | R Documentation |
Maximum-likelihood fitting for the distribution of the maximum/minimum of a given number of independent variables from a specified distribution.
fextreme(x, start, densfun, distnfun, ..., distn, mlen = 1, largest =
TRUE, std.err = TRUE, corr = FALSE, method = "Nelder-Mead")
x |
A numeric vector. |
start |
A named list giving the initial values for the parameters over which the likelihood is to be maximized. |
densfun , distnfun |
Density and distribution function of the specified distribution. |
... |
Additional parameters, either for the specified
distribution or for the optimization function |
distn |
A character string, optionally specified as an alternative
to |
mlen |
The number of independent variables. |
largest |
Logical; if |
std.err |
Logical; if |
corr |
Logical; if |
method |
The optimization method (see |
Maximization of the log-likelihood is performed. The estimated standard errors are taken from the observed information, calculated by a numerical approximation.
If the density and distribution functions are user defined, the order
of the arguments must mimic those in R base (i.e. data first,
parameters second).
Density functions must have log
arguments.
Returns an object of class c("extreme","evd")
.
The generic accessor functions fitted
(or
fitted.values
), std.errors
,
deviance
, logLik
and
AIC
extract various features of the
returned object.
The function anova
compares nested models.
An object of class c("extreme","evd")
is a list containing
at most the following components
estimate |
A vector containing the maximum likelihood estimates. |
std.err |
A vector containing the standard errors. |
deviance |
The deviance at the maximum likelihood estimates. |
corr |
The correlation matrix. |
var.cov |
The variance covariance matrix. |
convergence , counts , message |
Components taken from the
list returned by |
call |
The call of the current function. |
data |
The data passed to the argument |
n |
The length of |
anova.evd
, forder
, optim
uvdata <- rextreme(100, qnorm, mean = 0.56, mlen = 365)
fextreme(uvdata, list(mean = 0, sd = 1), distn = "norm", mlen = 365)
fextreme(uvdata, list(rate = 1), distn = "exp", mlen = 365,
method = "Brent", lower=0.01, upper=10)
fextreme(uvdata, list(scale = 1), shape = 1, distn = "gamma", mlen = 365,
method = "Brent", lower=0.01, upper=10)
fextreme(uvdata, list(shape = 1, scale = 1), distn = "gamma", mlen = 365)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.