I want to use an estimated effect size (like Cohen’s d) to do the sample size calculation.
To perform the sample size calculation using a range of effect sizes, for example, 0.2, 0.3, 0.4, 0.5.
Could you please let me know what is the code for that?
Thanks
I don't think anyone can provide code for you unless you first provide a lot more information about the actual problem. It seems since you are talking about Cohen's D that you are fitting some sort of model to some data. But please explain further the exact problem and the exact model you plan to fit.
In the meantime, please take a look at the PROC GLMPOWER documentation and see if it helps.
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!
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.