50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


ReIns (version 1.0.7)

cExpQQ: Exponential quantile plot for right censored data

Description

Exponential QQ-plot adapted for right censored data.

Usage

cExpQQ(data, censored, plot = TRUE, main = "Exponential QQ-plot", ...)

Arguments

data

Vector of n observations.

censored

A logical vector of length n indicating if an observation is censored.

plot

Logical indicating if the quantiles should be plotted in an exponential QQ-plot, default is TRUE.

main

Title for the plot, default is "Exponential QQ-plot".

Additional arguments for the plot function, see plot for more details.

Value

A list with following components:

eqq.the

Vector of the theoretical quantiles, see Details.

eqq.emp

Vector of the empirical quantiles from the data.

Details

The exponential QQ-plot adapted for right censoring is given by (log(1Fkm(Zj,n)),Zj,n) for j=1,,n1, with Zi,n the i-th order statistic of the data and Fkm the Kaplan-Meier estimator for the CDF. Hence, it has the same empirical quantiles as an ordinary exponential QQ-plot but replaces the theoretical quantiles log(1j/(n+1)) by log(1Fkm(Zj,n)).

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.

References

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.

See Also

ExpQQ, cLognormalQQ, cParetoQQ, cWeibullQQ, KaplanMeier

Examples

Run this code
# 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)

# Exponential QQ-plot adapted for right censoring
cExpQQ(Z, censored=censored)
# }

Run the code above in your browser using DataLab