examples: Rename variables for nhtsa example to give them better names.
[pspp] / doc / pspp-figures / ctables35.sps
index 7024f9d70714db674c7a30a850cf6a45b4071a42..71ceb11114056cc39e5cd633cb99d2777b1160de 100644 (file)
@@ -4,8 +4,8 @@ CTABLES
     /PPROPERTIES &all_drivers LABEL='All Drivers'
     /PCOMPUTE &pct_never=EXPR([5] / ([1 THRU 2] + [3 THRU 4] + [5]) * 100)
     /PPROPERTIES &pct_never LABEL='% Not Drivers' FORMAT=COUNT PCT40.1
-    /TABLE=qn1 BY qns3a
-    /CATEGORIES VARIABLES=qn1 [1 THRU 2, SUBTOTAL='Frequent Drivers',
-                               3 THRU 4, SUBTOTAL='Infrequent Drivers',
-                              &all_drivers, 5, &pct_never,
-                              MISSING, SUBTOTAL='Not Drivers or Missing'].
+    /TABLE=freqOfDriving BY gender
+    /CATEGORIES VARIABLES=freqOfDriving [1 THRU 2,SUBTOTAL='Frequent Drivers',
+                                        3 THRU 4, SUBTOTAL='Infrequent Drivers',
+                                        &all_drivers, 5, &pct_never,
+                                        MISSING, SUBTOTAL='Not Drivers or Missing'].