Hi guys,
I have to run 210 regressions. All with the same independent variable but with different dependent variables. However if I use
proc reg data=chris;
model20: model rpfund20=rpax/clb;
model21: model rpfund21=rpax/clb;
model22: model rpfund22=rpax/clb;
model23: model rpfund23=rpax/clb;
model24: model rpfund24=rpax/clb;
model25: model rpfund25=rpax/clb;
model26: model rpfund26=rpax/clb;
model27: model rpfund27=rpax/clb;
model28: model rpfund28=rpax/clb;
model29: model rpfund29=rpax/clb;
run;
then each model has the same number of observations. Say the variable rpfund27 has 44 observations (which is the smallest amount of any of the independent variables) then all the above regressions are calculated using 44 observations, even if say rpfund21 has 214 observations.
Please help me get around this. And I know I could write proc reg data=chris; for each model statement but then when I use the 'outest' and 'tableout' functions I have to write them to different data files. Ideally I want all the parameter estimates and the r-squares and p-values for each of the regressions in one table seem I'm running 210 regressions in total.
Thanks very much
I have to run 210 regressions. All with the same independent variable but with different dependent variables. However if I use
proc reg data=chris;
model20: model rpfund20=rpax/clb;
model21: model rpfund21=rpax/clb;
model22: model rpfund22=rpax/clb;
model23: model rpfund23=rpax/clb;
model24: model rpfund24=rpax/clb;
model25: model rpfund25=rpax/clb;
model26: model rpfund26=rpax/clb;
model27: model rpfund27=rpax/clb;
model28: model rpfund28=rpax/clb;
model29: model rpfund29=rpax/clb;
run;
then each model has the same number of observations. Say the variable rpfund27 has 44 observations (which is the smallest amount of any of the independent variables) then all the above regressions are calculated using 44 observations, even if say rpfund21 has 214 observations.
Please help me get around this. And I know I could write proc reg data=chris; for each model statement but then when I use the 'outest' and 'tableout' functions I have to write them to different data files. Ideally I want all the parameter estimates and the r-squares and p-values for each of the regressions in one table seem I'm running 210 regressions in total.
Thanks very much