Programming the statistical procedures from SAS

Proc Power - Lines on graph are not clearly identified

Reply
New User
Posts: 1

Proc Power - Lines on graph are not clearly identified

[ Edited ]
proc power plotonly;
twosamplemeans test=diff
groupmeans =12 | 15 18
stddev = 7 9
power=.
ntotal = 200;
plot y=n min=20 max=500;
run;

PowerPlot4.png

 

all circle round, no diffMan Sad

 

sas ver.9.3,  any other reason?  thx 

  

Grand Advisor
Posts: 16,850

Re: Proc Power - Lines on graph are not clearly identified

Try choosing a different style for your graph.

 

ODS HTML style=journal;

I would consider contacting SAS Tech Support to get help with this as well, as it seems weird. I had no issues in running this in SAS 9.4

SAS Super FREQ
Posts: 3,304

Re: Proc Power - Lines on graph are not clearly identified

I believe that SAS 9.3 was before the HTMLBlue style was created, so you are Reeza are using different default styles.  SAS 9.3 was more than five years ago, so I don't remember the default style, but I think your issue is the attribute priority.

 

According to Sanjay's article I linked to:

"While this behavior was first introduced in SAS 9.3, this AttrPriority behavior was internally implemented.  With SAS 9.3M1, the AttrPriority option was surfaced in the Style.  With SAS 9.4, AttrPriority option was surfaced in the ODS Graphics statement."

 

In other words, if you have 9.3m1 you can use the style to change the attrpriority.  If you use a modern version of SAS, you can just say

ODS GRAPHICS / attrpriority=NONE;

 

Ask a Question
Discussion stats
  • 2 replies
  • 119 views
  • 0 likes
  • 3 in conversation