Help using Base SAS procedures

npar1way histogram

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

npar1way histogram

I have a task to create  permutation for rank sum and fit/overlay a normal curve to the resulting histogram. My npar1way code is below. I'm not sure how to create the histogram from the output of the npar1way. I'm using the latest university edition. Any help would be appreciated.

 

proc npar1way data=mydata wilcoxon;
class type;
exact wilcoxon / n=5000;
run;

Accepted Solutions
Solution
‎02-12-2016 07:22 AM
SAS Super FREQ
Posts: 3,473

Re: npar1way histogram

I don't know how comfortable you are with the SAS/IML language, but you this article about

"Monte Carlo for Contingency Tables" contains about 80% of the computations that you will need to run your own Monte Carlo simulation and graph the 5,000 statistics. You just need to implement the Wilcoxon statistic, which you can do by using the RANK function in SAS/IML.

View solution in original post


All Replies
Respected Advisor
Posts: 4,640

Re: npar1way histogram

I don't think you can get the 5000 Monte-Carlo permutation Wilcoxon statistics from npar1way.

PG
Solution
‎02-12-2016 07:22 AM
SAS Super FREQ
Posts: 3,473

Re: npar1way histogram

I don't know how comfortable you are with the SAS/IML language, but you this article about

"Monte Carlo for Contingency Tables" contains about 80% of the computations that you will need to run your own Monte Carlo simulation and graph the 5,000 statistics. You just need to implement the Wilcoxon statistic, which you can do by using the RANK function in SAS/IML.

☑ This topic is SOLVED.

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

Discussion stats
  • 2 replies
  • 270 views
  • 1 like
  • 3 in conversation