I am new to SAS programming, especially the macro programming aspect. I am having trouble creating a macro for this data set. Basically I want to get the means for x1 or x2 for females and y1 or y2 for males.
proc summary data=xx nway ;
class gender ;
var x1 x2 y1 y2 ;
output out=want mean= ;
run;
This will produce a dataset with two rows, one for males and one for females with the means of X1 , X2 , Y1 and Y2.
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!