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