170 likes | 309 Views
Microcomputer Processing of Census and Surveys (using CSPro). U.S. Census Bureau International Programs Center www.census.gov/ipc/www. Data File Design. How are data stored in the data file? What is a case? What is on a record? How many records?. Objectives:.
E N D
Microcomputer Processing of Census and Surveys(using CSPro) U.S. Census Bureau International Programs Center www.census.gov/ipc/www
Data File Design • How are data stored in the data file? • What is a case? • What is on a record? • How many records?
Objectives: • Understand elements of a data file • Describe a field, record, and questionnaire • Describe data file structures • Learn how the CSPro data dictionary defines these elements
Needed information about data file • Need identification fields • Need information / data fields • Need “SIZE” [how many characters] • Need valid values/codes
Data File StructureASCII/text • ALL data on ONE record/line • Different types of data on DIFFERENT record/lines
Data Processing/Data File Terminology • Item/variable/field • Record • Questionnaire (Case) • Data file
Item/variable/field • Is a single piece of information • Has the attributes of: Size Type Numeric/Alphanumeric
Record • a collection of related items forming a single line of information. For example: • Housing Recordcontains information about the house • Population Record Contains information about each person in the house
Case/Questionnaire • all the records of all types for a processing unit such as a household
A data file is • a collection of all the questionnaires (cases)
CSPro Data Dictionary • Field names/labels • Field size • Field location • Field attributes • Record names • Record types • Records ID’s • Records allowed by type
From the questionnaire to the data file (one record type)
From the questionnaire to the data file (What are the data?)
From the questionnaire to the data file (Where are the data?)