BookmarkSubscribeRSS Feed
plssssshelp
Calcite | Level 5
obviously this says twosamplemeans so this wouldn't work, what would I change it to in order to be able to use three sample means?
 
proc power;
twosamplemeans test=diff sides=1
groupmeans= 37 | 35 | 28
stddev = 4.5
groupweights = (1 1 1)
ntotal = 24
1 REPLY 1
ed_sas_member
Meteorite | Level 14

Hi @plssssshelp 

 

It seems that you want to conduct a one-way ANOVA power analysis. Is that right?

In this case you can use the keyword 'onewayanova'.

NB: you need to specify an option to be designated as the result.

E.g. if you're looking at power, specify power=.

Best,

proc power;
	onewayanova
	test=overall
	groupmeans=37 | 35 | 28
	stddev=4.5 
	groupweights=(1 1 1)
	ntotal=24
	power=.
	;
run; 

 

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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 720 views
  • 0 likes
  • 2 in conversation