4 Assignment 3 - Unit 1 - Demographics and Employment
4 Assignment 3 - Unit 1 - Demographics and Employment
Calculator
Homework due Sep 29, 2020 01:59 EET Past due
demographics and employment in the united states
In the wake of the Great Recession of 2009, there has been a good deal of focus on employment statistics, one of
the most important metrics policymakers use to gauge the overall strength of the economy. In the United States,
the government measures unemployment using the Current Population Survey (CPS), which collects demographic
and employment information from a wide range of Americans each month. In this exercise, we will employ the
topics reviewed in the lectures as well as a few new techniques using the September 2013 version of this rich,
nationally representative dataset (available online).
The observations in the dataset represent people surveyed in the September 2013 CPS who actually completed a
survey. While the full dataset has 385 variables, in this exercise we will use a more compact version of the
dataset, CPSData.csv, which has the following variables:
PeopleInHousehold: The number of people in the interviewee's household.
Region: The census region where the interviewee lives.
State: The state where the interviewee lives.
MetroAreaCode: A code that identifies the metropolitan area in which the interviewee lives (missing if the
interviewee does not live in a metropolitan area). The mapping from codes to names of metropolitan areas is
provided in the file MetroAreaCodes.csv.
Age: The age, in years, of the interviewee. 80 represents people aged 80-84, and 85 represents people aged 85
and higher.
Married: The marriage status of the interviewee.
Sex: The sex of the interviewee.
Education: The maximum level of education obtained by the interviewee.
Race: The race of the interviewee.
Hispanic: Whether the interviewee is of Hispanic ethnicity.
CountryOfBirthCode: A code identifying the country of birth of the interviewee. The mapping from codes to
names of countries is provided in the file CountryCodes.csv.
Citizenship: The United States citizenship status of the interviewee.
EmploymentStatus: The status of employment of the interviewee.
Industry: The industry of employment of the interviewee (only available if they are employed).
Asian
Black
Multiracial
Pacific Islander
White
Explanation
The breakdown of race and Hispanic ethnicity can be obtained with table(CPS$Race, CPS$Hispanic).
Age Calculator
Married
Sex
Education
Race
Hispanic
CountryOfBirthCode
Citizenship
EmploymentStatus
Industry
Explanation
This can be read from the output of summary(CPS).
The Married variable being missing is related to the Citizenship value for the interviewee.
The Married variable being missing is not related to the Region, Sex, Age, or Citizenship value for the
interviewee.
Explanation
We can test the relationship between these four variable values and whether the Married variable is missing with
the following commands:
table(CPS$Region, is.na(CPS$Married)) Calculator
table(CPS$Sex, is.na(CPS$Married))
table(CPS$Sex, is.na(CPS$Married))
table(CPS$Age, is.na(CPS$Married))
table(CPS$Citizenship, is.na(CPS$Married))
For each possible value of Region, Sex, and Citizenship, there are both interviewees with missing and non-
missing Married values. However, Married is missing for all interviewees Aged 0-14 and is present for all
interviewees aged 15 and older. This is because the CPS does not ask about marriage status for interviewees 14
and younger.
Northeast
South
West
Explanation
To evaluate the number of interviewees not living in a metropolitan area, broken down by region, we can run
table(CPS$Region, is.na(CPS$MetroAreaCode)). We can then compute the proportion of interviewees in each Calculator
region that live in a non-metropolitan area: 34.8% in the Midwest, 21.6% in the Northeast, 23.8% in the South, and
g p , , ,
24.4% in the West.
San Francisco-Oakland-Fremont, CA
Explanation
From table(CPS$MetroArea), we can read that Boston-Cambridge-Quincy, MA-NH has the largest number of
interviewees of these options, with 2229.
Washington-Arlington-Alexandria, DC-VA-MD-WV
In Brazil?
Boston-Cambridge-Quincy, MA-NH
edX
Blog
Contact
PleaseUsremember not to ask for or post complete answers to homework questions in this discussion forum.
Help Center
Security
Media Kit
Discussion Show Discussion
Topic: Unit 1 / Unit 1, Homework: Demographics and Employment in the United States
Calculator