This function computes estimates of large quantiles Q(1−p) of the truncated distribution using the ML estimates adapted for upper truncation. Moreover, estimates of large quantiles QY(1−p) of the original distribution Y, which is unobserved, are also computed.
trQuantMLE(data, gamma, tau, DT, p, Y =FALSE, plot =FALSE, add =FALSE, main ="Estimates of extreme quantile",...)
Arguments
data: Vector of n observations.
gamma: Vector of n−1 estimates for the EVI obtained from trMLE.
tau: Vector of n−1 estimates for the τ obtained from trMLE.
DT: Vector of n−1 estimates for the truncation odds obtained from trDTMLE.
p: The exceedance probability of the quantile (we estimate Q(1−p) or QY(1−p) for p small).
Y: Logical indicating if quantiles from the truncated distribution (Q(1−p)) or from the parent distribution (QY(1−p)) are computed. Default is TRUE.
plot: Logical indicating if the estimates should be plotted as a function of k, default is FALSE.
add: Logical indicating if the estimates should be added to an existing plot, default is FALSE.
main: Title for the plot, default is "Estimates of extreme quantile".
...: Additional arguments for the plot function, see plot for more details.
Details
We observe the truncated r.v. X=dY∣Y<T where T is the truncation point and Y the untruncated r.v.
Under rough truncation, the quantiles for X are estimated using