SPSS Statistics

Expand all | Collapse all

Syntax editor: Variables line highlighted in red (not comprehensible reason)

  • 1.  Syntax editor: Variables line highlighted in red (not comprehensible reason)

    Posted Fri August 27, 2021 01:13 PM
    Dear community, 

    I am new to SPSS and want to use the following Syntax to calculate the reliability, i.e. internal consistency, of several questions that are used to measure different concepts. I am confused why the one line regarding system usability scale is in red font color (see screenshot below), while the same logic is used in the other reliability calculations which seem to be fine:
    * Encoding: UTF-8.
    DATASET ACTIVATE DataSet1.
    USE ALL.
    /*COMPUTE filter_$=((setting_acc < 30) & (systemperformancenum > 2)).
    /*VARIABLE LABELS filter_$ '(setting_acc < 30) & (systemperformancenum > 2) (FILTER)'.
    /*VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
    /*FORMATS filter_$ (f1.0).
    /*FILTER BY filter_$.
    EXECUTE.
    
    
    RELIABILITY
    /*Pre-motivation
      /VARIABLES=Pre_motivation_1_Learn_many_ Recoded Pre_motivation_2_Motivated_learn_Recoded Pre_motivation_3_Improve_skills_Recoded Pre_motivation_4_Invest_effort_Recoded Pre_motivation_5_High_prio_Recoded
      /MODEL=ALPHA
      /STATISTICS=DESCRIPTIVE SCALE CORR COV
      /SUMMARY=MEANS VARIANCE.
    
    RELIABILITY
      /*Motivation
      /VARIABLES=Motivation_1_Enjoyed_virtual_world_After_training_recoded Motivation_2_Enjoyable_After_training_recoded Motivation_3_Interesting_After_training_recoded  Motivation_4_Experience_fun_After_training_recoded
      /SCALE('motivation') ALL
      /MODEL=ALPHA
      /STATISTICS=DESCRIPTIVE SCALE CORR COV
      /SUMMARY=MEANS VARIANCE.
    
    RELIABILITY
      /*System usability scale
      /VARIABLES=Usability_1_Use_frequently_Recoded Usability_2_Complex_Recoded Usability_3_Easy_to_use_Recoded Usability_4_Assistance_required_Recoded Usability_5_Functions_integrated_Recoded Usability_6_Inconsistency_Recoded Usability_7_Learn_quickly_Recoded Usability_8_Cumbersome_Recoded Usability_9_Confident_Recoded Usability_10_Learn_much_Recoded
      /SCALE('usability') ALL
      /MODEL=ALPHA
      /STATISTICS=DESCRIPTIVE SCALE CORR COV
      /SUMMARY=MEANS VARIANCE.
    ​


    Thank you very much in advance for your help!

    ------------------------------
    Alexander Farr
    ------------------------------


  • 2.  RE: Syntax editor: Variables line highlighted in red (not comprehensible reason)

    Posted Fri August 27, 2021 01:33 PM
    I think the variables line in that last command is longer than 255 bytes.  Break it somewhere before that point, and it should be fine.

    ------------------------------
    Jon Peck
    ------------------------------