Weibull QQ-plot adapted for right censored data.
cWeibullQQ(data, censored, plot = TRUE, main = "Weibull QQ-plot", ...)
Vector of
A logical vector of length
Logical indicating if the quantiles should be plotted in a Weibull QQ-plot, default is TRUE
.
Title for the plot, default is "Weibull QQ-plot"
.
Additional arguments for the plot
function, see plot
for more details.
A list with following components:
Vector of the theoretical quantiles, see Details.
Vector of the empirical quantiles from the log-transformed data.
The Weibull QQ-plot adapted for right censoring is given by
This QQ-plot is only suitable for right censored data.
In Beirlant et al. (2007), only a Pareto QQ-plot adapted for right-censored data is proposed. This QQ-plot is constructed using the same ideas, but is not described in the paper.
Beirlant, J., Guillou, A., Dierckx, G. and Fils-Villetard, A. (2007). "Estimation of the Extreme Value Index and Extreme Quantiles Under Random Censoring." Extremes, 10, 151--174.
# NOT RUN {
# Set seed
set.seed(29072016)
# Pareto random sample
X <- rpareto(500, shape=2)
# Censoring variable
Y <- rpareto(500, shape=1)
# Observed sample
Z <- pmin(X, Y)
# Censoring indicator
censored <- (X>Y)
# Weibull QQ-plot adapted for right censoring
cWeibullQQ(Z, censored=censored)
# }
Run the code above in your browser using DataLab