We plan to conduct a study for comparing the survival rate between three different types of surgery for total knee arthroplasty. Thus, the sample size for the study should be estimated.
We could calculate the sample size for two groups by log-rank test in SAS as follow:
%let pt=0.65;
%let pc=0.40;
%let alpha=0.05;
%let beta=0.15;
data aa;
theta=log10(1-&pt)/log10(1-&pc);
thetal=round(theta,0.001);
e=((theta+1)/(theta-1))**2*(probit(1-&alpha/2)+probit(1-&beta))**2;
el=int(e)+1;
n=2/(&pt+&pc)*e;
nl=int(n)+1;
file print;
run;
But, how to calculated the sample size for three groups (or >2 groups) by log-rank test?
Thanks!
I suppose it depends on your hypothesis - all three groups are the same, or all three groups are different, or one group is different from the other two...?
The following describes running simulations, you might find this helpful:
https://www.lexjansen.com/pharmasug/2004/StatisticsPharmacokinetics/SP08.pdf
Also this, especially the example:
https://onlinelibrary.wiley.com/doi/pdf/10.1002/sim.4780142010
I suppose it depends on your hypothesis - all three groups are the same, or all three groups are different, or one group is different from the other two...?
The following describes running simulations, you might find this helpful:
https://www.lexjansen.com/pharmasug/2004/StatisticsPharmacokinetics/SP08.pdf
Also this, especially the example:
https://onlinelibrary.wiley.com/doi/pdf/10.1002/sim.4780142010
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.