Dear All,
I am running a test for median differences among three countries:
ODS GRAPHICS ON;
PROC NPAR1WAY WILCOXON MEDIAN;
CLASS Country;
VAR time;
RUN;
In the results I do not get the results for Median two-way analysis, but for Median one-way analysis.
Could anyone tel me how a can obtain the Median Two-way results?
Best regards;
Iuri
Are you sure the data used was the correct set? Your code did not show a Data= so the last data set created would be the default set used by the procedure.
From the documentation of the option:
Since your data has 3 levels of the class variable then output should be from the Kruskal-Wallis test which is a test for equality of means (medians) across all of the classes. That should have appeared under the "Wilcoxon Scores" table in the output.
If by "Median Two-way results" you mean the results comparing 2 levels of the class variable then you need to subset your data to 2 levels (3 sets of tests) which will raise some concerns about repeated tests from the same data. The "Median Two Sample Test" table will only appear with exactly two levels of the class variable.
Are you sure the data used was the correct set? Your code did not show a Data= so the last data set created would be the default set used by the procedure.
From the documentation of the option:
Since your data has 3 levels of the class variable then output should be from the Kruskal-Wallis test which is a test for equality of means (medians) across all of the classes. That should have appeared under the "Wilcoxon Scores" table in the output.
If by "Median Two-way results" you mean the results comparing 2 levels of the class variable then you need to subset your data to 2 levels (3 sets of tests) which will raise some concerns about repeated tests from the same data. The "Median Two Sample Test" table will only appear with exactly two levels of the class variable.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.