200 likes | 302 Views
Multiple Indicator Cluster Surveys Data Processing Workshop. Creating Analysis Files: Description of Preparation Steps. Secondary Data Processing Flow. Export Data from CSPRO. Import Data into SPSS. Recode Variables. Add Sample Weights, Wealth Index and GPS Data. Run Tables.
E N D
MICS Data Processing Workshop Multiple Indicator Cluster SurveysData Processing Workshop Creating Analysis Files: Description of Preparation Steps
Secondary Data Processing Flow Export Data from CSPRO Import Data into SPSS Recode Variables Add Sample Weights, Wealth Index and GPS Data Run Tables
Importing Data to SPSS • Executing syntax files created by CSPRO • In SPSS, run all my*.spsfiles (one by one) • The my*.spsfiles will import the data into SPSS and create SPSS-format data files (system files - *.sav), with variable labels, value labels etc. • At the end of each run, save your work in data files as hh.sav, hl.sav, wm.sav, mn.sav, ch.savtn.sav, fg.sav, bh.sav, mm.sav
Saving the Data File • It is helpful to have the syntax file automatically save the data file that it creates • To do so, add the following line to the end of the syntax file: save outfile = 'hh.sav'.
Run frequency distributions • Open SPSS and run frequency distributions for all of the variables in all .sav files • Detect any unexpected codes or inconsistencies, and if necessary, return to CSPro and make corrections.
Next Steps • Recoding variables • Creating new variables by recoding existing variables • Adding variables to different levels • Mother’s education • Father’s education
Customize make*.sps • Customize the make*.sps syntax files, in accordance with the contents of your questionnaires • Take out any variables and associated syntax which are not included in your questionnaire, or modify the variables according to your response categories
Run make.sps • Run make.sps to recode all additional variables needed for the tabulations • make.sps is provided as a batch file which calls and runs each of the make*.spsfiles in turn • All *.savvariables will be replaced! • Backup before you proceed to this stage
Next Steps • Adding sample weights • Sample weights are added from weights spreadsheet
Calculate weights • Obtain distribution of interview results by the unit based on which you intend to calculate unique sample weights: - using the weights_table.sps syntax file, if calculation at cluster level - using the weights_table_alt.sps syntax file, if calculation at stratum level, e.g. regions and area
Calculate weights cont. • Calculate final sample weights • using weights.xls, if calculations are carried out at the cluster level • weights_alt.xls, if calculations are carried out at stratum level
Calculate weights cont. • Once calculations in weights.xls or weights_alt.xls have been completed, save the “Output” workbook • c:\mics5\weights\weights.xls
Append sample weights • Append sample weights to the exported SPSS files hh.sav, hl.sav, wm.sav, ch.sav (tn.sav, fg.sav, bh.sav and mm.sav if relevant modules included), by using the SPSS weights_merge.sps or weights_merge_alt.sps syntax file • Need customization if ITN, Birth History modules or Men questionnaire included
Next Steps • Adding wealth index • Wealth index calculated then added to files
Customize wealth.sps • Customize the wealth.sps syntax file that calculates wealth index values, together with the survey coordinator/technical manager, according to the items included in your questionnaire
Run and append wealth • Run the customized SPSS syntax wealth.sps to calculate and append wealth index values to all of the exported data files
Next Steps • Tabulation • Tables are generated from the *.sav files
Customize each syntax • Customize all tabulation syntax files in accordance with the contents of your survey • Delete the syntax files which are used to obtain tables on topics which are not included in your survey
Run all_tables.sps • Once all tabulation syntax files are customized and free of errors, customize all_tables.sps • all_tables.sps calls and runs all tabulation syntax files, and produces an output which includes all tables • If any of the tabulation syntax files have errors, the program will stop and you will have to correct the tabulation syntax file. Then re-run all_tables.sps