|
I created a variable to describe the pattern of Program Evaluation Forms completed following administration of a Pretest (Bxx), Posttest (Nxx), and Follow-up (Fxx).
The following syntax works but the SPSS syntax checker flagged it as having an error.
The second closing paren was incorrectly flagged.
COMPUTE ProgEvals =
(MAX(0,B01,B02,B03,B04,B05)>0)*100 +
(MAX(0,N01,N02,N03,N04,N05)>0)*10 +
(MAX(0,F01,F02,F03,F04,F05)>0) .
So Pretest only would be coded 100 and complete data would be 111.
Dennis Deck, PhD
RMC Research Corporation 111 SW Columbia Street, Suite 1200 Portland, Oregon 97201-5843 voice: 503-223-8248 x715 voice: 800-788-1887 x715 fax: 503-223-8399 [hidden email] |
|
Let me restate the issue:
The following was interpreted as free of syntax errors:
COMPUTE ProgEvals =
(MAX(0,B01,B02,B03,B04,B05)>0)*100 +
(MAX(0,N01,N02,N03,N04,N05)>0)*10 +
(MAX(0,F01,F02,F03,F04,F05)>0) .
The following was interpreted incorrectly:
COMPUTE ProgEvals = (MAX(0,B01,B02,B03,B04,B05)>0)*100 +
(MAX(0,N01,N02,N03,N04,N05)>0)*10 +
(MAX(0,F01,F02,F03,F04,F05)>0) .
Dennis
_____________________________________________
From: Dennis Deck Sent: Wednesday, June 23, 2010 8:56 PM To: '[hidden email]' Subject: Syntax flagged incorrectly I created a variable to describe the pattern of Program Evaluation Forms completed following administration of a Pretest (Bxx), Posttest (Nxx), and Follow-up (Fxx).
The following syntax works but the SPSS syntax checker flagged it as having an error.
The second closing paren was incorrectly flagged.
COMPUTE ProgEvals =
(MAX(0,B01,B02,B03,B04,B05)>0)*100 +
(MAX(0,N01,N02,N03,N04,N05)>0)*10 +
(MAX(0,F01,F02,F03,F04,F05)>0) .
So Pretest only would be coded 100 and complete data would be 111.
Dennis Deck, PhD
RMC Research Corporation 111 SW Columbia Street, Suite 1200 Portland, Oregon 97201-5843 voice: 503-223-8248 x715 voice: 800-788-1887 x715 fax: 503-223-8399 [hidden email] |
|
The second close parentheses was colored red. When I simply put the cursor after the equal sign in the second set and type "enter" the second close parentheses turns black. I could toggle the error on and off by hitting backspace, enter, backspace, enter, etc. Art Kendall On 6/24/2010 12:06 AM, Dennis Deck wrote: ===================== 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
Art Kendall
Social Research Consultants |
|
In reply to this post by Dennis Deck
Hi Dennis, A bug report has been filed on this. Our apologies. David Nichols Statistical Support SPSS, an IBM Company
Let me restate the issue: The following was interpreted as free of syntax errors: COMPUTE ProgEvals = (MAX(0,B01,B02,B03,B04,B05)>0)*100 + (MAX(0,N01,N02,N03,N04,N05)>0)*10 + (MAX(0,F01,F02,F03,F04,F05)>0) . The following was interpreted incorrectly: COMPUTE ProgEvals = (MAX(0,B01,B02,B03,B04,B05)>0)*100 + (MAX(0,N01,N02,N03,N04,N05)>0)*10 + (MAX(0,F01,F02,F03,F04,F05)>0) . Dennis _____________________________________________ From: Dennis Deck Sent: Wednesday, June 23, 2010 8:56 PM To: '[hidden email]' Subject: Syntax flagged incorrectly I created a variable to describe the pattern of Program Evaluation Forms completed following administration of a Pretest (Bxx), Posttest (Nxx), and Follow-up (Fxx). The following syntax works but the SPSS syntax checker flagged it as having an error. The second closing paren was incorrectly flagged. COMPUTE ProgEvals = (MAX(0,B01,B02,B03,B04,B05)>0)*100 + (MAX(0,N01,N02,N03,N04,N05)>0)*10 + (MAX(0,F01,F02,F03,F04,F05)>0) . So Pretest only would be coded 100 and complete data would be 111. Dennis Deck, PhD RMC Research Corporation 111 SW Columbia Street, Suite 1200 Portland, Oregon 97201-5843 voice: 503-223-8248 x715 voice: 800-788-1887 x715 fax: 503-223-8399 ddeck@... |
| Free forum by Nabble | Edit this page |
