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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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