Macro + SPSSINC ROBUST REGR : Error

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

Macro + SPSSINC ROBUST REGR : Error

drfg2008
When I try to combine SPSSINC ROBUST REGR with a Macro, I get the following error message:

Error:  SPSS Statistics error:  The error code is '10'  With message 'Invalid variable index.'

This is the syntax:

DEFINE !robust (av = !tokens (1)
                        /title =!tokens(1)
                        /coef =!tokens(1)
                        /path=!tokens(1)).
DATASET ACTIVATE Tennis_other_Leagues.

SPSSINC ROBUST REGR DEPENDENT = !av  ENTER = standard_Back_1 standard_Lay_1
    standard_Back_2 standard_Lay_2
/OPTIONS MISSING=LISTWISE
/SAVE COEFSDATASET=!coef.
DATASET ACTIVATE !coef.
RENAME VARIABLES coefficient = !coef.
SAVE OUTFILE=!path.
!ENDDEFINE.


The 'funny' thing is that the whole syntax works as long as it is not saved and reopened again.

Frank
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: Macro + SPSSINC ROBUST REGR : Error

Jon K Peck
This probably means that you are referring to a nonexistent variable.  Run SET MPRINT ON and see what your actual generated SPSSINC ROBUST REGR command is and whether the active dataset is the one you expect.

Jon Peck (no "h")
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        drfg2008 <[hidden email]>
To:        [hidden email]
Date:        08/13/2011 01:16 PM
Subject:        [SPSSX-L] Macro + SPSSINC ROBUST REGR : Error
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




When I try to combine SPSSINC ROBUST REGR with a Macro, I get the following
error message:

Error:  SPSS Statistics error:  The error code is '10'  With message
'Invalid variable index.'

This is the syntax:

DEFINE !robust (av = !tokens (1)
                       /title =!tokens(1)
                       /coef =!tokens(1)
                       /path=!tokens(1)).
DATASET ACTIVATE Tennis_other_Leagues.

SPSSINC ROBUST REGR DEPENDENT = !av  ENTER = standard_Back_1 standard_Lay_1
   standard_Back_2 standard_Lay_2
/OPTIONS MISSING=LISTWISE
/SAVE COEFSDATASET=!coef.
DATASET ACTIVATE !coef.
RENAME VARIABLES coefficient = !coef.
SAVE OUTFILE=!path.
!ENDDEFINE.


The 'funny' thing is that the whole syntax works as long as it is not saved
and reopened again.

Frank

-----
Dr. Frank Gaeth
FU-Berlin

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Macro-SPSSINC-ROBUST-REGR-Error-tp4696896p4696896.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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: Macro + SPSSINC ROBUST REGR : Error

drfg2008
yes, that's it,

problem solved. Thanks
Dr. Frank Gaeth