|Data||Command to Test Equality of Mean||Command to Test Equality of Median|
|Paired or matched||Paired t test:||Wilcoxon matched-pairs signed-rank test:
Sign test of matched pairs:
|Unpaired or unmatched||Two-sample t test:||Wilcoxon rank-sum test or Mann_Whitney test:
K-sample equality-of-medians test:
UCLA IDRE has posted an article (link) that may provide a bit more explanation. UCLA IDRE is a great resource for learning statistical analysis. A big thank you to them.