Repeat a regression

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

drk123
Posts: 1
Joined: Wed Aug 20, 2014 3:36 am

Repeat a regression

Postby drk123 » Wed Aug 20, 2014 3:46 am

Hi,

Is it possible to repeat a regression through the syntax? In my database I have 24 pairs of variables, I use each of those pairs to explain one same variable. I'd like to be able to de 24 regressions without having to copy, past and modify the regression syntax each time.

REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT RES_1
/METHOD=ENTER spt1 drt1
/SAVE PRED.

Is there a way to tell SPSS to do this regression 24 times, changing "spt1" and "drt1" to "spt2" and "drt2" and so on?

Hope i made myself clear. Thanks

Who is online

Users browsing this forum: No registered users and 2 guests

cron