I keep receiving the error:
Precede your code by proc sort:
proc sort data=bmi_smoke ;
by sex bmi;
run;
Sounds like you want BMI on the VAR statement. Put SEX on the CLASS statement, instead of trying to use a BY statement.
proc means data= bmi_smoke mean stddev;
class sex;
var BMI;
run;
thanks Tom! that helped! do you know if i am able to find out the 95% confidence interval level in that code as well?
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!
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.