what's wrong with this expression?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

what's wrong with this expression?

J McClure
Hi,
I am working thru the Help tutorial on hierarchical cluster analysis. In
the step on preparing the data (select cases if), I entered the
following example syntax (type=0) & (sales>100).  into the text field
but when I click on continue I get the message "The expression is
incomplete. Check for missing operands, invalid operators, unmatched
parentheses or excessive string lengths".  I tried cutting and pasting
from the example, I tried (type=0 & sales>100). based on an example in
the syntax ref guide, and I tried entering it using the GUI entirely and
not the keyboard. Same error.
Thanks in advance,
Jan

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with this expression?

Alex Reutter

To clarify, is the expression that you are typing in to the text field

        (type=0) & (sales>100).

or

        (type=0) & (sales>100)

?  The only difference between the two is that the first has a period on the end and gives the warning message you describe; the second doesn't and runs correctly.  

Alex



From: J McClure <[hidden email]>
To: [hidden email]
Date: 09/15/2010 12:53 PM
Subject: what's wrong with this expression?
Sent by: "SPSSX(r) Discussion" <[hidden email]>





Hi,
I am working thru the Help tutorial on hierarchical cluster analysis. In
the step on preparing the data (select cases if), I entered the
following example syntax (type=0) & (sales>100).  into the text field
but when I click on continue I get the message "The expression is
incomplete. Check for missing operands, invalid operators, unmatched
parentheses or excessive string lengths".  I tried cutting and pasting
from the example, I tried (type=0 & sales>100). based on an example in
the syntax ref guide, and I tried entering it using the GUI entirely and
not the keyboard. Same error.
Thanks in advance,
Jan

Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with this expression?

J McClure
It does have a period at the end.   (type = 0) & (sales > 100).
I'm running PASW grad pack 18. I got to the cluster analysis tutorial through the factor analysis tutorial. At the end it says if your variables are not scale consider cluster analysis. My variables are from a survey and the respondent chooses between "not at all' 'several days' more than half the days' and nearly every day'.   The most of the variables are highly to moderately correlated. I want to see if the variables are measuring must a few underlying constructs and I am interested in whether there is a profile(s) for the pattern of responses.
Thanks,
Jan


On 9/15/2010 11:18 AM, Alex Reutter wrote:

To clarify, is the expression that you are typing in to the text field

        (type=0) & (sales>100).

or

        (type=0) & (sales>100)

?  The only difference between the two is that the first has a period on the end and gives the warning message you describe; the second doesn't and runs correctly.  

Alex



From: J McClure [hidden email]
To: [hidden email]
Date: 09/15/2010 12:53 PM
Subject: what's wrong with this expression?
Sent by: "SPSSX(r) Discussion" [hidden email]





Hi,
I am working thru the Help tutorial on hierarchical cluster analysis. In
the step on preparing the data (select cases if), I entered the
following example syntax (type=0) & (sales>100).  into the text field
but when I click on continue I get the message "The expression is
incomplete. Check for missing operands, invalid operators, unmatched
parentheses or excessive string lengths".  I tried cutting and pasting
from the example, I tried (type=0 & sales>100). based on an example in
the syntax ref guide, and I tried entering it using the GUI entirely and
not the keyboard. Same error.
Thanks in advance,
Jan

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with this expression?

Alex Reutter

Good.  Remove the period from the expression you enter in the text box and it will run.  The dialog automatically adds it to the end of the generated COMPUTE statement.  The period in what you're reading: "In the text field, type (type=0) & (sales>100). " is simply there to indicate that it's the end of the sentence, not the expression.  

Alex


From: J McClure <[hidden email]>
To: [hidden email]
Date: 09/15/2010 01:33 PM
Subject: Re: what's wrong with this expression?
Sent by: "SPSSX(r) Discussion" <[hidden email]>





It does have a period at the end.   (type = 0) & (sales > 100).
I'm running PASW grad pack 18. I got to the cluster analysis tutorial through the factor analysis tutorial. At the end it says if your variables are not scale consider cluster analysis. My variables are from a survey and the respondent chooses between "not at all' 'several days' more than half the days' and nearly every day'.   The most of the variables are highly to moderately correlated. I want to see if the variables are measuring must a few underlying constructs and I am interested in whether there is a profile(s) for the pattern of responses.
Thanks,
Jan


On 9/15/2010 11:18 AM, Alex Reutter wrote:


To clarify, is the expression that you are typing in to the text field


       (type=0) & (sales>100).


or


       (type=0) & (sales>100)


?  The only difference between the two is that the first has a period on the end and gives the warning message you describe; the second doesn't and runs correctly.  


Alex



From: J McClure <mc006@...>
To: [hidden email]
Date: 09/15/2010 12:53 PM
Subject: what's wrong with this expression?
Sent by: "SPSSX(r) Discussion" [hidden email]






Hi,
I am working thru the Help tutorial on hierarchical cluster analysis. In
the step on preparing the data (select cases if), I entered the
following example syntax (type=0) & (sales>100).  into the text field
but when I click on continue I get the message "The expression is
incomplete. Check for missing operands, invalid operators, unmatched
parentheses or excessive string lengths".  I tried cutting and pasting
from the example, I tried (type=0 & sales>100). based on an example in
the syntax ref guide, and I tried entering it using the GUI entirely and
not the keyboard. Same error.
Thanks in advance,
Jan

===================== 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