Dear all
I'm trying to crosstabulate two string variables, and it seems to be
instantly crashing the system. The syntax I'm using is the following:

CROSSTABS
        /TABLES= Col1 Col2  BY   Col44
        /FORMAT=AVALUE LABELS TABLES PIVOT
        /STATISTICS=CHISQ
        /CELLS=COUNT ROW COLUMN TOTAL.

Col1, Col2 and Col44 are string variables (1 & 2 are variables such as
'Agree', 'Diagree' and 44 is  'a. 1-3 years', 'b. 3-5 years', 'c. 5-8 years'
etc). Is there some other recommended way to do a cross tab of this kind?

Also, I tried to create a new variable as follows (in order to extract the
first letter):

COMPUTE CAT=SUBSTRING(Col44,1,1)

This also fails.

Any help would be gratefully accepted.

TIA

s.b.
-- 
View this message in context: 
http://old.nabble.com/Xtab-with-strings-compute-question-tp30059928p30059928.html
Sent from the Gnu - PSPP - Users mailing list archive at Nabble.com.


_______________________________________________
Pspp-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-users

Reply via email to