SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
Expand all | Collapse all

After troubleshooting & cleaning data still getting same error

  • 1.  After troubleshooting & cleaning data still getting same error

    Posted Tue September 08, 2020 09:47 AM

    Hi, I am pretty new to using syntax and having an issue with the same error code. I previously ran the syntax OK using V.21 but running on V.25:

    "Mixed Text: number Command: mixed

    An undefined variable name, or a scratch or system variable was specified in a variable list which accepts only standard variables. Check spelling and verify the existence of this variable.

    Execution of this command stops." It may be the syntax needs to be updating? I have tried troubleshooting/cleaning data - to no avail though. All variable names ARE valid according to IBM user guide etc...

    Syntax:

    mixed probac_post BY treatment period volunteer_id number WITH probac_pre

    /fixed = probac_pre period treatment

    /random intercept | subject(volunteer_id) covtype(vc)

    /repeated number | subject(volunteer_id*period) covtype(diag)

    /emmeans =TABLES(treatment) compare(treatment).

    VARIABLE NAME LIST (9/33 of the variable names)

    volunteer_id

    period

    treatment

    ei_pre

    ei_post

    bif_pre

    bif_post

    probac_pre

    probac_post






    #SPSSStatistics
    #Support
    #SupportMigration


  • 2.  RE: After troubleshooting & cleaning data still getting same error
    Best Answer

    Posted Tue September 08, 2020 12:43 PM

    I don't see the number variable in your variable list.






    #SPSSStatistics
    #Support
    #SupportMigration


  • 3.  RE: After troubleshooting & cleaning data still getting same error
    Best Answer

    Posted Tue September 08, 2020 02:20 PM

    Hi Jon, thanks for responding. There is no number variable. I came up with this syntax with help of a statistician - I assumed it was part of the command, however I can't remove it as it in the repeated command...I think you're right, this is the problem part of the syntax...






    #SPSSStatistics
    #Support
    #SupportMigration


  • 4.  RE: After troubleshooting & cleaning data still getting same error
    Best Answer

    Posted Tue September 08, 2020 02:51 PM

    Ps - I have 2 treatments (1 and 2), 2 periods (pre and post), and volunteer ID . The other variables consist of the values. So I'm not sure if I take out "number" what to replace with in repeated command...I am referring to the mixed model guide and syntax commands guide but it is difficult when you're not used to this language. I like syntax though...that said!






    #SPSSStatistics
    #Support
    #SupportMigration


  • 5.  RE: After troubleshooting & cleaning data still getting same error
    Best Answer

    Posted Tue September 08, 2020 04:22 PM

    I don't know what that variable is supposed to represent, but it has to exist to include it in the command. Maybe it should be period here.






    #SPSSStatistics
    #Support
    #SupportMigration