Maximum likelihood estimates of point process for the r-largest observations
Source:R/mle.R
fit.rlarg.RdThis uses a constrained optimization routine to return the maximum likelihood estimate
based on an n by r matrix of observations. Observations should be ordered, i.e.,
the r-largest should be in the last column.
Usage
fit.rlarg(
xdat,
start = NULL,
method = c("nlminb", "BFGS"),
show = FALSE,
fpar = NULL,
warnSE = FALSE
)Arguments
- xdat
a numeric vector of data to be fitted.
- start
named list of starting values
- method
the method to be used. See Details. Can be abbreviated.
- show
logical; if
TRUE(the default), print details of the fit.- fpar
a named list with fixed parameters, either
scaleorshape- warnSE
logical; if
TRUE, a warning is printed if the standard errors cannot be returned from the observed information matrix when the shape is less than -0.5.
Value
a list containing the following components:
estimatea vector containing all the maximum likelihood estimates.std.erra vector containing the standard errors.vcovthe variance covariance matrix, obtained as the numerical inverse of the observed information matrix.methodthe method used to fit the parameter.nllhthe negative log-likelihood evaluated at the parameterestimate.convergencecomponents taken from the list returned byauglag. Values other than0indicate that the algorithm likely did not converge.countscomponents taken from the list returned byauglag.xdatannbyrmatrix of data
Examples
xdat <- rrlarg(n = 10, loc = 0, scale = 1, shape = 0.1, r = 4)
fit.rlarg(xdat)