This package consists of methods that compute rank based tests for clustered data.
Usage
clus.rank.sum(Cluster, X, grp = NULL, Y = NULL, test = c("DS", "DD", "SDS"))
Arguments
Cluster
Cluster ID
X
Outcome variable
grp
Binary group indicator variable (0 or 1) if test= "DS" or "DD"
Y
Matched outcome variable if test="SDS"
test
"DS" =Datta-Satten rank-sum test, "DD" = Dutta-Datta rank-sum test, "SDS" = Data-Satten signed rank test
Value
pvalue
P-value for the test
Test Statistic
Test statistic value for the test
References
Datta, S., and Satten, G. A. (2005). Rank-sum tests for clustered data. Journal of the American Statistical Association, 100, 908-915.
Datta, S., and Satten, G. A. (2008). A Signed-rank test for clustered data. Biometrics, 64, 501-507.
Dutta, S., and Datta, S. (2015). A rank-sum test for clustered data when the number of subjects in a group within a cluster is informative. Biometrics, doi: 10.1111/biom.12447.