How to run multiple number of bivariate regressions

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to run multiple number of bivariate regressions

Jeff A

 

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
Reply | Threaded
Open this post in threaded view
|

Re: How to run multiple number of bivariate regressions

spss.giesel@yahoo.de
* 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
Reply | Threaded
Open this post in threaded view
|

Re: How to run multiple number of bivariate regressions

Jeff A

 

 

Yup.

 

That did it.

 

Thanks

 

Jeff

 

 

From: SPSSX(r) Discussion <[hidden email]> On Behalf Of Mario Giesel
Sent: Wednesday, February 12, 2020 5:48 PM
To: [hidden email]
Subject: Re: How to run multiple number of bivariate regressions

 

* 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

===================== 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