Brief IAT Syntax Error


Author
Message
Help
Help
Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)
Group: Forum Members
Posts: 7, Visits: 1

Hi,


I'm having problems with the syntax script used to analyse a Brief
Implicit Association Test. I basically used the Brief IAT/w Pictures and changed the images and names used. I'm trying to use the BriefIAT SPSS Script but I keep getting these error messages:


39 IF A relational operator may have two numeric operands or two
character string operands.  To compare a character string to a numeric
quantity, consider using the STRING or NUMBER function.

40 IF A relational operator may have two numeric operands or two
character string operands.  To compare a character string to a numeric
quantity, consider using the STRING or NUMBER function.


Which refer to:


line 38 COMPUTE Pairing = 0.

line 39 IF (blockcode = 'A' ) Pairing = 1.

line 40 IF (blockcode = 'B' ) Pairing = 2.


Blockcode was originally a string value so I changed it to a
numerical value using the ALTER TYPE command (ALTER TYPE blockcode
(f8.2)).


What do I have to do to get rid of this error?
And also, does this error make any difference to the D scores I have been given?

Thank you.


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K


Blockcode was originally a string value so I changed it to a
numerical value using the ALTER TYPE command (ALTER TYPE blockcode
(f8.2)).


Then obviously you have to adapt


line 39 IF (blockcode = 'A' ) Pairing = 1.

line 40 IF (blockcode = 'B' ) Pairing = 2.


to account for that change. In the above blockcode is expected to be a string variable.


For questions regarding SPSS usage, please refer to the support resources provided by its vendor.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search