Hi,
I wonder how to run models based on first N input variables from a list. For example, the list contains "age height weight BMI income" and I would like to fit a series of regression model based on first N variable. I can write them one by one, but wonder if there is a efficient way of doing it. Thank you in advanced.
model 1:
proc reg data=data;
model y=age;
run;
model 2:
proc reg data=data;
model y=age height;
run;
model 3:
proc reg data=data;
model y=age height weight;
run;
model 4:
proc reg data=data;
model y=age height weight BMI;
run;
model 5:
proc reg data=data;
model y=age height weight BMI income;
run;