Hi,
Loop commands are transformation commands, and you can't have procedures
inside such looping structures.
You may try to do many regressions with python, something like this:
for var in varlist:
spss.Submit("REGRESSION /DEPENDENT res /METHOD=ENTER " + var + ".")
Baiyun
2007/9/29, zym <
[hidden email]>:
>
> Hi, all,
>
> I am new to SPSS syntax. I want to run the following promgram.
>
>
> LOOP #k = 1 to 10.
>
> REGRESSION /VARIABLES=x,y /STATISTICS=DEFAULTS /DEPENDENT=y
> /METHOD=STEPWI
> SE.
>
> END LOOP.
>
>
> However, the following error was reported. How to address this? Could you
> please give me a hand? Thank you very much
>
>
> zhouyuming
>
>
>
>
>
> >Error # 4095. Command name: REGRESSION
> >The transformations program contains an unclosed LOOP, DO IF, or complex
> >file structure. Use the level-of-control shown to the left of the SPSS
> >commands to determine the range of LOOPs and DO IFs.
> >This command not executed.
>