Programming the statistical procedures from SAS

proc npar1way wilcoxon rank sum test keeps running and never completes

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 8
Accepted Solution

proc npar1way wilcoxon rank sum test keeps running and never completes

When trying do a wilcoxon rank sum test on a small comma-delimited input text file (96 obs) in PROC NPAR1WAY, the program keeps running (like stuck in an endless loop) and never completes.


Accepted Solutions
Solution
‎08-29-2016 09:17 PM
Grand Advisor
Posts: 16,865

Re: proc npar1way wilcoxon rank sum test keeps running and never completes

Without your code or log we can barely guess. 

It could be as simple as not including a RUN or semicolon.

 

Please post the code you've used. 

If it is a small dataset, the frequencies of the groups you're looking at may be required as well. If you're doing an exact calculation it may take a while, though SAS usually warns you about that.

 

 

View solution in original post


All Replies
Respected Advisor
Posts: 4,606

Re: proc npar1way wilcoxon rank sum test keeps running and never completes

How do you transform your text file into an input dataset for npar1way?

PG
Occasional Contributor
Posts: 8

Re: proc npar1way wilcoxon rank sum test keeps running and never completes

not sure what you mean. I just read the comma-delimited text file with an infile statement. That's not a problem.

Solution
‎08-29-2016 09:17 PM
Grand Advisor
Posts: 16,865

Re: proc npar1way wilcoxon rank sum test keeps running and never completes

Without your code or log we can barely guess. 

It could be as simple as not including a RUN or semicolon.

 

Please post the code you've used. 

If it is a small dataset, the frequencies of the groups you're looking at may be required as well. If you're doing an exact calculation it may take a while, though SAS usually warns you about that.

 

 

Occasional Contributor
Posts: 8

Re: proc npar1way wilcoxon rank sum test keeps running and never completes

Thanks! I removed the exact statement and the code ran fine.

Respected Advisor
Posts: 4,606

Re: proc npar1way wilcoxon rank sum test keeps running and never completes

If you have an EXACT statement, add option MC

 

EXACT WILCOXON / MC N=100000;

PG
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 212 views
  • 5 likes
  • 3 in conversation