How to installCluster-Sign-Rank Test package and test datasets for STATA:

  • Copy the following paragraphs and paste them into STATA to execute: 
net install clusignrank,replace force from(http://sph.umd.edu/sites/default/files/files/EPIB/mtlee/clusignrank/
 
* Clustered Wilcoxon signed rank test for a balanced design
use sample_balanced_data, clear
clusignrank z, cluster(id)
 
* Clustered Wilcoxon signed rank test for an unbalanced design
use sample_unbalanced_data, clear
clusignrank z, cluster(id)