lgngcon(x, nmean = 0, nsd = 1,
ul = qnorm(0.1, nmean, nsd), xil = 0, phiul = TRUE,
ur = qnorm(0.9, nmean, nsd), xir = 0, phiur = TRUE,
log = TRUE)
nlgngcon(pvector, x, phiul = TRUE, phiur = TRUE,
finitelik = FALSE)
NULL
fgngcon
.
They are designed to be used for MLE in
fgngcon
but are available
for wider usage, e.g. constructing your own extreme value
mixture models.
See fgngcon
,
gngcon
and
fgpd
for full details.
Log-likelihood calculations are carried out in
lgngcon
, which takes
parameters as inputs in the same form as distribution
functions. The negative log-likelihood is a wrapper for
lgngcon
, designed towards
making it useable for optimisation (e.g. parameters are
given a vector as first input). The tail fractions
phiul
and phiur
are treated separately to
the other parameters, to allow for all it's
representations.
Unlike the distribution functions
gngcon
the phiu
must
be either logical (TRUE
or FALSE
) or
numerical in range $(0, 1)$. The default is to
specify phiu=TRUE
so that the tail fraction is
specified by normal distribution $\phi_u = 1 - H(u)$,
or phiu=FALSE
to treat the tail fraction as an
extra parameter estimated using the sample proportion.
Specify a numeric phiu
as pre-specified
probability $(0, 1)$. Notice that the tail fraction
probability cannot be 0 or 1 otherwise there would be no
contribution from either tail or bulk components
respectively.
The function lgngcon
carries
out the calculations for the log-likelihood directly,
which can be exponentiated to give actual likelihood
using (log=FALSE
).lgng
,
lnormgpd
,
lgpd
and
gpd
Other gngcon: dgngcon
,
fgngcon
, gngcon
,
pgngcon
, qgngcon
,
rgngcon