Plots a quantile-quantile (Q-Q) plot of censored data versus a fitted data distribution
cenQQ(x.var, cens.var, dist = "lnorm", Yname = yname)
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 |
A single Q-Q plot of data fitted by normal, lognormal or gamma distributions with Shapiro-Francia W value printed on plot.
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.
# User defined distribution cenQQ(Brumbaugh$Hg,Brumbaugh$HgCen,dist="gamma")# }