Description Usage Arguments Details Value References Examples
View source: R/corrected-ztest.R
corrected.ztest
uses the Looney and Jones corrected z-test
to obtain a p-value for a partially matched pairs test.
1 | corrected.ztest(x, y, alternative = c("two.sided", "greater", "less"))
|
x |
a non-empty numeric vector containing some NA values |
y |
a non-empty numeric vector containing some NA values |
alternative |
specification of the alternative hypothesis.
Takes values: |
Looney and Jones’s corrected Z-test is “corrected” in the sense that it adjusts the standard error of the difference of the two samples by accounting for the correlation between the $n_1$ paired observations. Under the null hypothesis, the resulting test statistic Z_corr has an asymptotic N(0,1) distribution.
If proper sample size conditions are not met, then corrected.ztest
may
exit or perform a paired or unpaired two-sample t.test, depending on the
nature of the sample size issue.
If the variance of input data is close to zero, corrected.ztest
will
return an error message.
p-value associated with the hypothesis test
Kuan, Pei Fen, and Bo Huang. "A simple and robust method for partially matched samples using the p‐values pooling approach." Statistics in medicine 32.19 (2013): 3247-3259.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.