cenQQ {NADA2} | R Documentation |
Q-Q Plot censored data
Description
Plots a quantile-quantile (Q-Q) plot of censored data versus a fitted data distribution
Usage
cenQQ(x.var, cens.var, dist = "lnorm", Yname = yname)
Arguments
x.var |
The column of |
cens.var |
The column of indicators, where 1 (or |
dist |
One of three distributional shapes to fit to your data: lognormal ( |
Yname |
Optional – input text in quotes to be used as the variable name on the Q-Q plot. The default is the |
Value
A single Q-Q plot of data fitted by normal, lognormal or gamma distributions with Shapiro-Francia W value printed on plot.
References
Helsel, D.R., 2011. Statistics for Censored Environmental Data using Minitab and R, 2nd ed. John Wiley & Sons, USA, N.J.
Shapiro, S.S., Francia, R.S., 1972. An approximate analysis of variance test for normality. Journal of the American Statistical Association 67, 215–216.
Examples
data(Brumbaugh)
cenQQ(Brumbaugh$Hg,Brumbaugh$HgCen)
# User defined distribution
cenQQ(Brumbaugh$Hg,Brumbaugh$HgCen,dist="gamma")