MICS Data Processing Workshop CSPRO Overview
What is CSPRO? Comprehensive Data Processing Package For Data entry Verification Consistency checking Exporting Menu creation
CSPRO’s Components Dictionaries Forms Data Files Applications ALL CSPRO components are stored in ASCII format
Dictionaries Defines how the information from the questionnaire is stored in the data file. Questions => Variables Modules => Records Questionnaires => Levels Unique identifiers => Identification variables
Forms Forms are linked to dictionaries They are displayed during data entry They define which variables are entered the order in which variables are entered When you edit a form, CSPRO opens the associated dictionary
Applications Applications perform actions Types of applications Data entry Comparison Batch Export When you open an application, CSPRO opens its associated dictionary and forms (data entry only)
Application Types Data entry Comparison control the path through the questionnaire check that entered data is valid and consistent. Comparison compare two files and list differences comparison is used for verifying
Application Types Batch count cases in a data file perform consistency checks export dictionary and data to other packages
Opening CSPRO Double-click on CSPRO icon Double-click on an application, dictionary or form file
An Example of a Dictionary Double-click on the CSPRO icon Select file-->open Navigate to the c:\mics\cspro\dict directory Open the MICS3 dictionary
The Dictionary Screen Press CTRL+T to toggle between names and labels MICS3 is the dictionary HH and WMCH are dictionary levels _IDS0 and _IDS1 are identification variable records MODHH and MODED are ordinary records
The HH Level Click once on HH The right hand pane displays a list of records label name ID Required Max
The _IDS0 Record Click once on _IDS0 Displays ID variables: label and name start position and length data and item type occurrences decimals and decimal chatacter zero fill
The MODHH Record Click once on MODHH Displays a list of all the variables in this section Click once and then again on any item to modify it Double-click on any item (e.g., area) to display its value labels
The MODED Record MODED stores the information from the education questionnaire The MODED record is a repeating record each household can have many household members one record per household member in our example, the maximum is 50
Adding and Deleting Items Right-click on MODHH Displays options Modify or delete this record Add or insert a record Add an item (i.e., variable) to this record Right-click on any item to get a similar menu
An Example of a Form Select file--> close Select file-->open Navigate to the c:\mics\cspro\entry directory Change the “files of type” to form files Open the entry form file
The Form Screen Press CTRL+T to toggle between names and labels FL_ENTRY is the form file HH is a dictionary level FORMHH is a form for the variables in record MODHH FORMHL is a form for the variables in record MODHL
The FORMHH Form Click once on FORMHH to display the form Click once on an item on the form move it around right-click and selected properties protected Look at tree in left pane Determines entry order Grayed variables on form but not entered
The Form File Tabs In left pane, click once on files tab lists files associated with the form file Click once on dicts tab displays test dictionary Click once on forms tab Click once on FORMHH in left pane Select all text and fields and delete
Recreating FORMHH Click once on dicts tab Drag MODHH into right pane and release Select options and then click ok Rearrange fields and text Use align menu
Adding the Cluster Number Click once on dicts tab Click on + sign next to _IDS0 Drag HH1 and HH2 to right pane and release Close form file and do NOT save changes!
An Example of an Application Select file-->open Navigate to the c:\mics\cspro\entry directory Open the data entry application
The Application Screen Click once on files tab Shows list of all associated files ENT: contains file links APP: contains logic MGF: contains text for user-defined messages QSF: contains user-defined help; we don’t use these files Dicts and forms tabs as before
The Logic Screen Click once on forms tab Notice that HH1 has a blue check in green box indicates the presence of logic Click once on procedure button on toolbar displays logic for this item Click on any item in the left pane’s tree to see its logic (if any)
The Message File User-defined messages are stored in a file with the same name as the application and an MGF extension To see the message file, click on the message tab in the bottom pane when editing logic
Compiling and Executing Click once on compile button on toolbar (meat grinder) compiles current procedure box at lower right lists errors (if any) go to FL_ENTRY to compile entire application
Getting Help in CSPRO Hit the F1 key Click on the help menu The help system includes the syntax for all commands and statements in CSPRO