BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
shakabra09
Calcite | Level 5

I am having trouble understanding why the 'coxreg' option in proc power doesn't work for me. Everything I have read said to use that option to in order to determine the number of events needed, when I have an estimate for the HR and power that I want the study/analysis to have. Is it available anymore? If not, what other options are there in SAS to calculate this? I am using SAS 9.4 TRS Level 1M2. Windows Version 6.1. 

 

proc power;
     coxreg;
run;

proc power;
     onesamplefreq;
run;

Obviously the code above is not complete, but in my program 'coxreg' from the first example is red (meaning it's not recognized, unlike the 'onesamplefreq' option below it).

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

http://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_power_toc.ht...

 

Unfortunately SAS / STAT 13.2 doesn't have COXREG as an option. 

If you have a valid maintenance license, upgrades are free.

View solution in original post

6 REPLIES 6
Reeza
Super User

 program 'coxreg' from the first example is red (meaning it's not recognized, unlike the 'onesamplefreq' option below it).

 

That's not necessarily true. The editors just not smart enough sometimes. 

shakabra09
Calcite | Level 5

From my log:

 

1 proc power;
NOTE: Writing HTML Body file: sashtml.htm
2 coxreg
------
180
ERROR 180-322: Statement is not valid or it is used out of proper order.

 

I should have included this in my original post...

Reeza
Super User

What version of SAS/STAT do you have?

 

proc product_status;run;

 Or how about the demo code:

proc power;
   coxreg
      hazardratio = 1.4
      rsquare = 0.15
      stddev = 1.2
      ntotal = 80
      eventprob = 0.8
      power = .
   ;
run;
shakabra09
Calcite | Level 5


What version of SAS/STAT do you have?

 

proc product_status;run;

13.2

 

 Or how about the demo code:

proc power;
   coxreg
      hazardratio = 1.4
      rsquare = 0.15
      stddev = 1.2
      ntotal = 80
      eventprob = 0.8
      power = .
   ;
run;

10   proc power;
11      coxreg
        ------
        180
ERROR 180-322: Statement is not valid or it is used out of proper order.

12         hazardratio = 1.4
13         rsquare = 0.15
14         stddev = 1.2
15         ntotal = 80
16         eventprob = 0.8
17         power = .
18      ;
19   run;
shakabra09
Calcite | Level 5

It looks like that is my problem, SAS/STAT 13.2 doesn't support coxreg. I need to make sure I use that User's Guide. Thank you!

Reeza
Super User

http://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_power_toc.ht...

 

Unfortunately SAS / STAT 13.2 doesn't have COXREG as an option. 

If you have a valid maintenance license, upgrades are free.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is ANOVA?

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.

Discussion stats
  • 6 replies
  • 3517 views
  • 1 like
  • 2 in conversation