Download presentation
Presentation is loading. Please wait.
Published byTerence Boone Modified over 9 years ago
1
MICS Data Processing Workshop Multiple Indicator Cluster Surveys Data Processing Workshop Exporting data from CSPro to SPSS
2
Secondary Data Processing Flow Export Data from CSPro Import Data into SPSS Recode Variables Add Sample Weights, Wealth Index, and GPS Data Run Tables MICS Data Processing Workshop
3
Secondary Data Processing Exporting data from CSPro –Create SPSS data file and syntax file from CSPRO data file and dictionary Importing data to SPSS –Executing syntax file created by CSPro Recoding variables –Creating new variables and recoding old variables MICS Data Processing Workshop
4
Secondary Data Processing Adding sample weights –Sample weights are added from weights spreadsheet Adding wealth index –Wealth index calculated then added to files Adding GPS data –Geographic location data added to files Tabulation –Tables are generated from the analysis files MICS Data Processing Workshop
5
The Export Application A batch application –uses export to command Creates SPSS data and description files for nine types of cases: HouseholdWomenMenChildren Household (HH)Woman (WM)Man (MN)Under-five (CH) Household member (HL)Female Genital Cutting (FG) Insecticide-treated Nets (TN)Birth History (BH) Maternal Mortality (MM) MICS Data Processing Workshop
6
The Household (HH) Export Syntax: export to myHH HH1, HH2, { ID vars } MODHH, MODSL, MODCL, MODCD, MODHC, MODIR, MODWS, MODHW, MODSI, HHSex; Creates –c:\mics5\spss\myHH.sps –c:\mics5\spss\myHH.dat MICS Data Processing Workshop
7
The Household (HH) Export HHSex: recoded variable that was created using information from the Household Listing: HHSex = notappl; if HH9 = 1 then HHSex = HL4(1); endif; MICS Data Processing Workshop
8
Exporting a Household Member Household members data stored in rosters Must export correct data from each roster for each household member For each: –export data using occurrence numbers MICS Data Processing Workshop
9
The Household Member (HL) Export export to myHL HH1, HH2, MODHL(hloccur), MODED(edoccur), MODTN(tnoccur), HH5D, HH5M, HH5Y, HH6, HH7, mline, fline; MICS Data Processing Workshop
10
The Insecticide Nets (TN) Export Syntax: for i in MODTN_EDT do export to myTN HH1, HH2, { ID vars } MODTN, TN2, HH6, HH7; enddo; Creates –c:\mics5\spss\myTN.sps –c:\mics5\spss\myTN.dat MICS Data Processing Workshop
11
The Woman (WM) Export Syntax: if HL7(LN) > 0 then export to myWM HH1, HH2, LN, { ID vars } MODWM, MODWB, MODMT, MODCM, MODDB, MODMN, MODPN, MODIS, MODCP, MODUN, MODFG, MODDV, MODMA, MODSB, MODHA, MODTA, MODLS, MODTN(tnoccur), HH6, HH7, wdob, wdom, wagem, wdobfc, wdoblc, mstatus, ceb, csurv, cdead;{ Recoded variables } endif; Creates –c:\mics5\spss\myWM.sps –c:\mics5\spss\myWM.dat MICS Data Processing Workshop
12
The Female Genital Cutting(FC) Export Syntax: if WM7 = 1 then for i in MODFC_EDT do export to myFC HH1, HH2, LN, { ID vars } FG1, FG3, FG9, MODFC (i), HH6, HH7 enddo; endif; Creates –c:\mics5\spss\myFC.sps –c:\mics5\spss\myFC.dat MICS Data Processing Workshop
13
The Birth History (BH) Export Syntax: for i in MODBH_EDT do export to myBH HH1, HH2, LN, { ID vars } MODBH(i), wdoi, wdob; { Recoded variables } enddo; Creates –c:\mics5\spss\myBH.sps –c:\mics5\spss\myBH.dat MICS Data Processing Workshop
14
Maternal Mortality (MM) Export Syntax: for i in MODMM_EDT do export to myMM HH1, HH2, LN { ID vars } MM1, MM3, MMLN (i), HH6, HH7; enddo; Creates –c:\mics5\spss\myMM.sps –c:\mics5\spss\myMM.dat MICS Data Processing Workshop
15
The Man (MN) Export Syntax: if HL7A(LN) > 0 then export to myMN HH1, HH2, LN, { ID vars } MODMWM, MODMWB, MODMMT, MODMCM, MODMDV, MODMMA, MODMSB, MODMHA, MODMMC, MODMTA, MODMLS, MODTN(tnoccur), HH6, HH7, mndoi, mndob, mnage, mndom, mnagem, mndoblc, mmstatus, mceb, mcsurv, mcdead;{ Recoded variables } endif; Creates –c:\mics5\spss\myMN.sps –c:\mics5\spss\myMN.dat MICS Data Processing Workshop
16
The Child (CH) Export Syntax: if HL9(LN) > 0 then export to myCH HH1, HH2, LN, { ID vars } MODUF, MODAG, MODBR, MODEC, MODBD, MODIM, MODHF, MODCA, MODAN, Anthro_Vars, MODTN(tnoccur), HH6, HH7, HL4(UF4), ED4A(UF6), ED4B(UF6), cdoi, cdob, cage, cage_6, cage_11, caged; endif; Creates –c:\mics5\spss\myCH.sps –c:\mics5\spss\myCH.dat MICS Data Processing Workshop
17
Secondary Data Processing Flow Export Data from CSPro Import Data into SPSS Recode Variables Add Sample Weights, Wealth Index and GPS Data Run Tables MICS Data Processing Workshop
18
Reading the Data Into SPSS To read one of the exported data files into SPSS: 1.Start SPSS 2.Open the syntax file associated with the data file 3.Execute the syntax file run --> all 4. Save the file as XX.SAV where XX is HH, HL, TN, WM, FC, BH, MM, MN or CH MICS Data Processing Workshop
19
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'. MICS Data Processing Workshop
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.