Verschachtelte Schleifen via Syntag

Alles rund um SPSS Syntax und Programmierung.

Verschachtelte Schleifen via Syntag

Beitragvon Pman » Fr 2. Sep 2016, 16:04

Moin,

würde gerne eine Regression ausrechnen, bzw. insgesamt 104.
momentan sieht das ganze wie folgt aus:
Code: Alles auswählen
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN
  /DEPENDENT f01a0
  /METHOD=ENTER Einstell1 Einstell2 Einstell3
  /RESIDUALS HISTOGRAM(ZRESID) NORMPROB(ZRESID).
EXECUTE.


Die Variablen laufen hierbei von f01 bis 13 bzw. a0 bis a7. Deshalb habe ich gedacht ich kann wenigstens schon einmal ein paar zusammenfassen, aber das folgende wirft leider nur Fehler aus:

Code: Alles auswählen
DO REPEAT teil1 = f01 f02 f03 f04 f05 f06 f07 f08 f09 f10 f11 f12 f13.
DO REPEAT teil2 = a0 a1 a2 a3 a4 a5 a6 a7.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS CI(95) R ANOVA COLLIN TOL
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN
  /DEPENDENT teil1teil2
  /METHOD=ENTER Einstell1 Einstell2 Einstell3
  /RESIDUALS HISTOGRAM(ZRESID) NORMPROB(ZRESID).
EXECUTE.
END REPEAT.
END REPEAT.


Wo liegt mein Fehler und wie kann ich das abändern, dass alle Variablen abgerufen werden?

Habe auch versucht den teil1teil2 durch concate zusammenzufügen
Code: Alles auswählen
  /DEPENDENT concat(rtrim(teil1), rtrim(teil2)).
 


aber kein Erfolg
Pman
 
Beiträge: 4
Registriert: Do 1. Sep 2016, 12:51
Danke gegeben: 0
Danke bekommen: 0 mal in 0 Post

Re: Verschachtelte Schleifen via Syntag

Beitragvon strukturmarionette » Fr 2. Sep 2016, 19:10

Hi,

das folgende wirft leider nur Fehler aus:

- wie lautet denn die Fehlermeldung?

Gruß
S.
strukturmarionette
 
Beiträge: 2459
Registriert: Sa 1. Okt 2011, 17:20
Danke gegeben: 7
Danke bekommen: 122 mal in 122 Posts

Re: Verschachtelte Schleifen via Syntag

Beitragvon Pman » So 4. Sep 2016, 14:56

Fehlermeldung

*Regressionen.
DO REPEAT teil1 = f01 f02 f03 f04 f05 f06 f07 f08 f09 f10 f11 f12 f13.
DO REPEAT teil2 = a0 a1 a2 a3 a4 a5 a6 a7.

>Error # 4530. Command name: DO REPEAT
>This command is not allowed inside the DO REPEAT/ END REPEAT facility. The
>command will be ignored.
>Execution of this command stops.
REGRESSION

>Warning # 141. Command name: REGRESSION
>DO REPEAT has no effect on this command.

>Error # 4097. Command name: REGRESSION
>The transformations program contains a DO REPEAT without a terminating END
>REPEAT, or the DO REPEAT loop contains a command that is not valid inside this
>type of loop.
>Execution of this command stops.
/MISSING LISTWISE
/STATISTICS COEFF OUTS CI(95) R ANOVA COLLIN TOL
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT concat(rtrim(teil1), rtrim(teil2)).
/METHOD=ENTER Einstell1 Einstell2 Einstell3

>Warning # 141. Command name: /METHOD
>DO REPEAT has no effect on this command.

>Error # 1. Command name: /METHOD
>The first word in the line is not recognized as an SPSS Statistics command.
>Execution of this command stops.
/RESIDUALS HISTOGRAM(ZRESID) NORMPROB(ZRESID).
EXECUTE.

>Warning # 141. Command name: EXECUTE
>DO REPEAT has no effect on this command.

>Error # 4097. Command name: EXECUTE
>The transformations program contains a DO REPEAT without a terminating END
>REPEAT, or the DO REPEAT loop contains a command that is not valid inside this
>type of loop.
>Execution of this command stops.
END REPEAT.

>Warning # 4544. Command name: END REPEAT
>No commands were found between the DO REPEAT and END REPEAT commands.
END REPEAT.

>Error # 4001. Command name: END REPEAT
>An END REPEAT command has appeared without a previous DO REPEAT command.
>Execution of this command stops.
Pman
 
Beiträge: 4
Registriert: Do 1. Sep 2016, 12:51
Danke gegeben: 0
Danke bekommen: 0 mal in 0 Post


Zurück zu SPSS Syntax

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast