|
Jon
You mean that all your bells and whistles can't
pick up a character other than a space or "i" after "var" or that anything other
than "tab" must be the row variable?
John
----- Original Message -----
From: [hidden email]
To: [hidden email]
Sent: Friday, November 12, 2010 5:17 PM
Subject: Re: [SPSSX-L] SPSS 18 fails to spot varname in
crosstabs The command works with cro q6 by var15a because q6 doesn't match the (abbreviation for) VARIABLES while var15a does. Jon Peck Senior Software Engineer, IBM [hidden email] 312-651-3435 From: John F Hall <[hidden email]> To: [hidden email] Date: 11/12/2010 08:28 AM Subject: Re: [SPSSX-L] SPSS 18 fails to spot varname in crosstabs Sent by: "SPSSX(r) Discussion" <[hidden email]> I thought integer mode was abolished years ago, and who would have thought of CROSSTABS as an older command? OK, it's almost the oldest. The same thing happens with the full CROSSTABS command: crosstabs var15a by q6 . . . . but it works with: crosstabs tab var15a by q6 . And here's me telling everyone syntax is quicker and simpler than GUI, especially in lower case with abbreviated syntax. So much for "improvements" and new releases! Can someone please explain why it works with: cro q6 by var15a . I think you need a better syntax parser. SPSS 21 ???? John Hall [hidden email] http://surveyresearch.weebly.com ----- Original Message ----- From: [hidden email] To: [hidden email] Sent: Friday, November 12, 2010 3:59 PM Subject: Re: SPSS 18 fails to spot varname in crosstabs You are running into syntax ambiguity that occurs with some older commands. The CROSSTABS syntax chart shows, in parts, CROSSTABS [TABLES=]varlist BY varlist [BY...] [/varlist...] Integer mode : CROSSTABS VARIABLES=varlist(min,max)
[varlist...] Since the VARIABLES subcommand for integer mode
doesn't require a slash and keyword abbreviation is allowed, "var" is being
interpreted as a keyword. If you write the full syntax as in TABLES=var15a
by q6, you should be fine. Playing with some else's *.sav file (from SPSS 11) and this happened: cro var15a by q6 .
So I tried it the other way round, et voilà! cro q6 by var15a .
|
||||||||||||||||||||||||||||||||||||||||||||
| Free forum by Nabble | Edit this page |
