I’m finding that Do Repeat syntax doesn’t work with regression. E.g., Do Repeat x = A B C . REGRESSION /DEPENDENT Y /METHOD=ENTER x . End Repeat. Gives me an error stating that the do repeat command has no effect on regression. Can this be done in some other way? Perhaps with a macro? Best, Jeff |
* Untested. * Define macro. DEFINE !regression(!POSITIONAL !CMDEND) !DO !var !IN (!1) REGRESSION /DEPENDENT Y /METHOD=ENTER !var . !DOEND !ENDDEFINE. * Call macro. !regression a b c. Munich, Germany
Am Mittwoch, 12. Februar 2020, 08:07:22 MEZ hat Jeff A <[hidden email]> Folgendes geschrieben:
I’m finding that Do Repeat syntax doesn’t work with regression.
E.g.,
Do Repeat x = A B C . REGRESSION /DEPENDENT Y /METHOD=ENTER x . End Repeat.
Gives me an error stating that the do repeat command has no effect on regression.
Can this be done in some other way? Perhaps with a macro?
Best,
Jeff
|
Yup. That did it. Thanks Jeff From: SPSSX(r) Discussion <[hidden email]> On Behalf Of Mario Giesel * Untested. * Define macro. DEFINE !regression(!POSITIONAL !CMDEND) !DO !var !IN (!1) REGRESSION /DEPENDENT Y /METHOD=ENTER !var . !DOEND !ENDDEFINE. * Call macro. !regression a b c. Mario Giesel Munich, Germany Am Mittwoch, 12. Februar 2020, 08:07:22 MEZ hat Jeff A <[hidden email]> Folgendes geschrieben: I’m finding that Do Repeat syntax doesn’t work with regression. E.g., Do Repeat x = A B C . REGRESSION /DEPENDENT Y /METHOD=ENTER x . End Repeat. Gives me an error stating that the do repeat command has no effect on regression. Can this be done in some other way? Perhaps with a macro? Best, Jeff ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Free forum by Nabble | Edit this page |