Syntax - Stata
Equality tests on unmatched dataSyntaxMenuDescriptionOptions for ranksumOptions for medianRemarks and examplesStored resultsMethods and formulasReferencesAlso seeSyntaxWilcoxon rank-sum testranksumvarname[if] [in], by(groupvar)[porder]Nonparametric equality-of-medians testmedianvarname[if] [in] [weight], by(groupvar)[medianoptions]ranksumoption sDescriptionMain by(groupvar)grouping variableporderprobability that variable for first group is larger than variable forsecond groupmedianoptionsDescriptionMain by(groupvar)grouping variableexactperform Fisher s exact testmedianties(below)assign values equal to the median to below groupmedianties(above)assign values equal to the median to above groupmedianties(drop)drop values equal to the median from the analysismedianties(split)split values equal
Wilcoxon’s test statistic (1945) is the sum of the ranks for the observations in the first sample: T = Xn 1 i=1 R 1i Mann and Whitney’s U statistic (1947) is the number of pairs (X 1i;X 2j) such that X 1i > X 2j. These statistics differ only by a constant: U = T n 1(n 1 +1) 2
Download Syntax - Stata
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: