ppw.test: Test for difference in left-censored samples
Description
Performs a nonparametric Paired Prentice-Wilcoxon test of whether the median difference between two columns of paired censored data equals 0 (O'Brien and Fleming, 1987)
Usage
ppw.test(xd, xc, yd, yc, alternative = "two.sided", printstat = TRUE)
Arguments
xd
The first column of data values plus detection limits
xc
The column of censoring indicators, where 1 (or TRUE) indicates a detection limit in the xd column, and 0 (or FALSE) indicates a detected value in xd.
yd
The second column of data values plus detection limits
yc
The column of censoring indicators, where 1 (or TRUE) indicates a detection limit in the yd column, and 0 (or FALSE) indicates a detected value in yd
alternative
The usual notation for the alternate hypothesis. Default is <U+201C>two.sided<U+201D>. Options are <U+201C>greater<U+201D> or <U+201C>less<U+201D>.
printstat
Logical TRUE/FALSE option of whether to print the resulting statistics in the console window, or not. Default is TRUE.
Value
Paired Prentice-Wilcoxon test results including Z-statistic, n (sample size), p-value and median difference
References
Helsel, D.R., 2011. Statistics for Censored Environmental Data using Minitab and R, 2nd ed. John Wiley & Sons, USA, N.J.
O<U+2019>Brien, P.C., Fleming, T.R., 1987. A Paired Prentice-Wilcoxon Test for Censored Paired Data. Biometrics 43, 169<U+2013>180. https://doi.org/10.2307/2531957