trQuant computes estimates of large quantiles Q(1−p) of the truncated distribution using the estimates for the EVI obtained from the Hill estimator adapted for upper truncation. trQuantW computes estimates of large quantiles QW(1−p) of the parent distribution W which is unobserved.
trQuant(data, r =1, rough =TRUE, gamma, DT, p, plot =FALSE, add =FALSE, main ="Estimates of extreme quantile",...)trQuantW(data, gamma, DT, p, plot =FALSE, add =FALSE, main ="Estimates of extreme quantile",...)
Arguments
data: Vector of n observations (truncated data).
r: Trimming parameter, default is 1 (no trimming).
rough: Logical indicating if rough truncation is present, default is TRUE.
gamma: Vector of n−1 estimates for the EVI obtained from trHill.
DT: Vector of n−1 estimates for the truncation odds obtained from trDT.
p: The exceedance probability of the quantile (we estimate Q(1−p) for p small).
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=dW∣W<T where T is the truncation point and W the untruncated r.v.
Under rough truncation, the quantiles for X are estimated using