Hi. Good evening.
I forgot how to do this. But I want to save coding time and do an ANOVA for many variables against one variable (dependent one) .
My code is:
proc anova data=aung.initial_complete6; ; *p=.0406;
class m_zmed_combo_id_use ;
model(bmi age_initial)= m_zmed_combo_id_use;
means m_zmed_combo_id_use/bonferonni ;
run; quit;
I wish to do bmi, age, etc all in one step.
Any help?
Thanks so much,
grzyb
You've almost got it correct. Eliminate the parentheses and use the BON option. Here is a working example:
proc anova data=sashelp.heart;
class Smoking_Status;
model Cholesterol Weight Systolic Diastolic= Smoking_Status;
means Smoking_status / bon;
run; quit;
You've almost got it correct. Eliminate the parentheses and use the BON option. Here is a working example:
proc anova data=sashelp.heart;
class Smoking_Status;
model Cholesterol Weight Systolic Diastolic= Smoking_Status;
means Smoking_status / bon;
run; quit;
Thank you, kindly~~
Sometimes when in a rush, I, like others, make silly mistakes, esp. after programming for 10 hours.
Thank you very much!!
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.