Download presentation
Presentation is loading. Please wait.
Published byJoseph Salisbury Modified over 11 years ago
1
MICS4 Data Processing Workshop Multiple Indicator Cluster Surveys Data Processing Workshop SPSS CTABLE command Overview
2
Creating tables using CTABLES command The Custom Tables procedure produces tables in one, two, or three dimensions and provides a great deal of flexibility for organizing and displaying the contents DIMENSIONS: –ROW –COLUMN –LAYER MICS4 Data Processing Workshop
3
Creating tables using CTABLES command CTABLES is available in the Custom Tables option Square brackets that are used in the CTABLES syntax chart are required parts of the syntax and are not used to indicate optional elements All subcommands except /TABLE are optional MICS4 Data Processing Workshop
4
Creating tables using CTABLES command MICS4 Data Processing Workshop CTABLES /MRSETS COUNTDUPLICATES= {NO } {YES} /FORMAT EMPTY=ZERO {BLANK } {'chars'} /TABLE rows BY columns BY layers /SLABELS POSITION= {COLUMN} VISIBLE= {YES} {ROW } {NO } {LAYER } /TITLES CAPTION= ['text' 'text'...] CORNER= ['text' 'text'...] TITLE= ['text' 'text'...] Row, column, and layer elements each have the general form: varname {[C]} [summary label format...] {+} varname... {[S]} {>}
5
CTABLE Summary functions available for all variables: COUNT ROWPCT.COUNT COLPCT.COUNT TABLEPCT.COUNT SUBTABLEPCT.COUNT LAYERPCT.COUNT LAYERROWPCT.COUNT LAYERCOLPCT.COUNT ROWPCT.VALIDN COLPCT.VALIDN TABLEPCT.VALIDN SUBTABLEPCT.VALIDN LAYERPCT.VALIDN LAYERROWPCT.VALIDN LAYERCOLPCT.VALIDN ROWPCT.TOTALN COLPCT.TOTALN TABLEPCT.TOTALN SUBTABLEPCT.TOTALN LAYERPCT.TOTALN LAYERROWPCT.TOTALN LAYERCOLPCT.TOTALN MICS4 Data Processing Workshop
6
CTABLE Summary functions available for scale variables and for totals and subtotals of numeric variables: MAXIMUM MEAN MEDIAN MINIMUM MISSING MODE PTILE RANGE SEMEAN STDDEV SUM TOTALN VALIDN VARIANCE ROWPCT.SUM COLPCT.SUM TABLEPCT.SUM SUBTABLEPCT.SUM LAYERPCT.SUM LAYERROWPCT.SUM LAYERCOLPCT.SUM MICS4 Data Processing Workshop
7
CTABLE EXAMPLES: CTABLES /TABLE POLVIEWS [COLPCT] BY AGECAT. CTABLES /TABLE $MLTNEWS [COUNT COLPCT] BY SEX /SLABELS VISIBLE=NO MICS4 Data Processing Workshop
8
CTABLE CTABLES /MRSETS COUNTDUPLICATES=YES /FORMAT EMPTY=ZERO /TABLE hh1[S] BY stclust[S][MEAN,'Strata: clusters completed',F5.0] +sthhfnd[S][MEAN,'Strata: households found',F5.0] + sthhcomp[S][MEAN,'Strata: households completed',F5.0] +hhcomp[S] [SUM,'Cluster: households completed',F5.0] + sthh12[S][MEAN,'Strata: eligible women',F5.0] + sthh13[S][MEAN,'Strata: interviewed women',F5.0] +hh13[S][ SUM,'Cluster: interviewed women',F5.0] + sthh14[S][MEAN,'Strata: eligible children',F5.0] + sthh15[S][MEAN,'Strata: interviewed children',F5.0] +hh15[S][ SUM,'Cluster: interviewed children',F5.0] /CATEGORIES VAR=ALL EMPTY=EXCLUDE MISSING=EXCLUDE /SLABELS POSITION=COLUMN /TITLE TITLE= "Weight Tabulation". MICS4 Data Processing Workshop
9
Syntax convertor From TABLE to CTABLE: If you have command syntax files that contain TABLES syntax that you want to convert to CTABLES syntax a simple utility program is provided to help you get started with the conversion process. The conversion utility program, SyntaxConverter.exe, can be found in the installation directory. It is designed to run from a command prompt. The general form of the command is: syntaxconverter.exe [path]/inputfilename.sps [path]/outputfilename.sps MICS4 Data Processing Workshop
10
Syntax Converter Script (Windows Only) On Windows, you can also run the syntax converter with the script SyntaxConverter.wwd, located in the Samples directory of the installation directory. From the menus choose: Utilities Run Script... Navigate to the Samples directory and select SyntaxConverter.wwd. This will open a simple dialog box where you can specify the names and locations of the old and new command syntax files. MICS4 Data Processing Workshop
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.