Hi, I am trying to calculate power for a hypothetical cohort study, I have run in multiple times this code but I still receive the same error 180-322.
Thanks in advance!
groupweights=(1 9)/*Divide ntotal 9 to 1 between the groups => n2=9*n1, where n1 = exposed sample size & n2 = unexposed sample size*/
ntotal=120000 /*120,000 total participants in the study*/
power=.; /*Calculate power*/
WHere's the rest of the code? The PROC POWER statement for starters?
73 proc groupweights=
And the rest of that code doesn't look close to correct.
See the documentation reference here:
See the examples section for various full examples.
@emma19901 wrote:
Hi, I am trying to calculate power for a hypothetical cohort study, I have run in multiple times this code but I still receive the same error 180-322.
Thanks in advance!
groupweights=(1 9)/*Divide ntotal 9 to 1 between the groups => n2=9*n1, where n1 = exposed sample size & n2 = unexposed sample size*/
ntotal=120000 /*120,000 total participants in the study*/
power=.; /*Calculate power*/
OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;7273 proc groupweights=(1|9)/*Divide ntotal 9 to 1 between the groups => n2=9*n1, where n1 = exposed sample size & n2 =73 ! unexposed sample size*/ERROR: Procedure GROUPWEIGHTS not found.74 ntotal=120000 /*120,000 total participants in the study*/75 power=.; /*Calculate power*/7677 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
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.