BookmarkSubscribeRSS Feed
UcheOkoro
Lapis Lazuli | Level 10

Hello,

 

Please, I need help calculating sample sizes for 3 paired comparisons. I am looking at 3 measurements of blood glucose within the same individual to see if there is difference.  I am also concerned about p-value correction such as Bonferroni and holm I do know how to apply it to the codes if required.

The following is my code.

Thank you

ods pdf file="C:\temp\Merged44.pdf" style = minimal;
 ods graphics on;
 title " Sample size by power";
proc power ;
 pairedmeans test=diff 
  meandiff =4.5
  std = 12.5
  corr = .20 0.25 0.30
  npairs = .
  alpha =.05 
  power = 0.8 0.85 0.9;
plot
min=0.8
yopts=(ref=280 crossref=yes)
vary(color by stddev, linestyle by meandiff, symbol by corr);
ods graphics off;
 quit;
 ods pdf close;
1 REPLY 1
Norman21
Lapis Lazuli | Level 10

If I understand your question, you simply apply the Bonferroni correction to the alpha; in you case, the adjusted alpha would be 0.05/3 = 0.017

 

More here, including discussion of adjustment for correlation between predictors: https://stats.idre.ucla.edu/sas/dae/multiple-regression-power-analysis/

Norman.
SAS 9.4 (TS1M6) X64_10PRO WIN 10.0.17763 Workstation

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 737 views
  • 1 like
  • 2 in conversation