j***@yahoo.com
2007-07-19 23:29:27 UTC
Hi all,
I know I'm way late to the game at custom tables, but up until a few
weeks ago I was working with SPSS v10. I'm now on v15 and finding some
of my old syntax tricks for TABLES don't work with CTABLES.
For example - I used to use the syntax below to force blank rows into
a large table with multiple variables down the side. When I convert
this syntax into CTABLES it drops my "blank" variables because CTABLES
wants to outsmart me and notes, accurately, that they are...blank. In
TABLES these would just show up as blank rows.
Is there another way to format the table so it will have blank rows
between variables? Or a way to force CTABLES to accept my dummy
variables?
Here is the syntax that worked great in TABLES:
numeric blank1 (f1.0).
var labels blank1 "" .
TABLES
/FORMAT BLANK MISSING('.')
/GBASE=CASES
/FTOTAL= $t000001 "TOTAL # RESP" $t000002 "TOTAL # RESP"
/TABLE=v1 + $t000001 + blank1 + v2 + $t000002
BY v3 + v4
/STATISTICS
cpct( v1( PCT5.0 ) '':v3 v4 )
count( $t000001( F5.0 ) "" )
cpct( blank1( PCT5.0 ) '':v3 v4 )
cpct( v2( PCT5.0 ) '':v3 v4 )
count( $t000002( F5.0 ) "" ).
I know I'm way late to the game at custom tables, but up until a few
weeks ago I was working with SPSS v10. I'm now on v15 and finding some
of my old syntax tricks for TABLES don't work with CTABLES.
For example - I used to use the syntax below to force blank rows into
a large table with multiple variables down the side. When I convert
this syntax into CTABLES it drops my "blank" variables because CTABLES
wants to outsmart me and notes, accurately, that they are...blank. In
TABLES these would just show up as blank rows.
Is there another way to format the table so it will have blank rows
between variables? Or a way to force CTABLES to accept my dummy
variables?
Here is the syntax that worked great in TABLES:
numeric blank1 (f1.0).
var labels blank1 "" .
TABLES
/FORMAT BLANK MISSING('.')
/GBASE=CASES
/FTOTAL= $t000001 "TOTAL # RESP" $t000002 "TOTAL # RESP"
/TABLE=v1 + $t000001 + blank1 + v2 + $t000002
BY v3 + v4
/STATISTICS
cpct( v1( PCT5.0 ) '':v3 v4 )
count( $t000001( F5.0 ) "" )
cpct( blank1( PCT5.0 ) '':v3 v4 )
cpct( v2( PCT5.0 ) '':v3 v4 )
count( $t000002( F5.0 ) "" ).