BookmarkSubscribeRSS Feed
Manije72
Calcite | Level 5

Hi,

I want to do post hoc power analysis for Co regression. I want to calculate power in SAS for cox regression. I can find the hazard ratio and confidence interval from other studies. How can find R square and standard deviation for these code 

proc power;
coxreg
hazardratio = 1.4
rsquare = 0.15
stddev = 1.2
ntotal = 80
eventprob = 0.8
power = .
;
run;
1 REPLY 1
ballardw
Super User

Proc Power is intended to do pre-study planning, not post hoc power analysis.

 

From the online help:

Overview: POWER Procedure

Power and sample size analysis optimizes the resource usage and design of a study, improving chances of conclusive results with maximum efficiency. The POWER procedure performs prospective power and sample size analyses for a variety of goals, such as the following:

  • determining the sample size required to get a significant result with adequate probability (power)

  • characterizing the power of a study to detect a meaningful effect

  • conducting what-if analyses to assess sensitivity of the power or required sample size to other factors

(my color emphasis added)

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 1 reply
  • 540 views
  • 1 like
  • 2 in conversation