BookmarkSubscribeRSS Feed
Alroz
Calcite | Level 5

Hello,

 

I am trying to estimate a sample size for the log rank test comparing two different treatment arms.

The study will have a three year followup when the effect of the treatment will change after each year.

the input I am using is:

 

proc power;

   twosamplesurvival test=logrank

      Alpha = 0.05

      curve("trt1") = 1:0.65 2:0.53625 3:0.489328125

        curve("trt2") = (1 to 3 by 1):(0.82 0.7462 0.712621)

      groupsurvival = "trt1" | "trt2"

      accrualtime = 2

      Totaltime = 3

        groupmedlosstimes = 10 | 10

        groupweights = (1 2)

        power = 0.90

      EVENTSTOTAL=.

;

Run;

 

This program designs a piecewise linear effect. Can I choose an ascending or descending linear effect?

Also, I want to define a piecewise exponential?

And last, Can I define the effect in hazard ratio terms and not survival curve but with a changing hazard ratio over time?

 

Thank you!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 0 replies
  • 529 views
  • 0 likes
  • 1 in conversation