Department of Economics Trinity College Dublin, Ireland Day 2: Labour Market Participation and Income Earning Activities 1.

Slides:



Advertisements
Similar presentations
Housekeeping: Variable labels, value labels, calculations and recoding
Advertisements

Research Methods Lecture 3 More STATA Ian Walker Room S2.109   Slides available at:
Basics of Biostatistics for Health Research Session 2 – February 14 th, 2013 Dr. Scott Patten, Professor of Epidemiology Department of Community Health.
Statistical Methods Lynne Stokes Department of Statistical Science Lecture 7: Introduction to SAS Programming Language.
1. Write an Excel formula in cell Survey
Rural Non-Farm Sector Employment in India: Distress Driven or Growth Driven? Vinoj Abraham Centre for Development Studies Trivandrum, kerala INTERNATIONAL.
Knowing Understanding the Basics Writing your own code part 2 SAS Lab.
I NTRO TO S TATA James Ng Center for Digital Scholarship Hesburgh Libraries.
SAS Programming: Working With Variables. Data Step Manipulations New variables should be created during a Data step Existing variables should be manipulated.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 2 Exploring Data with Graphs and Numerical Summaries Section 2.1 Different Types of.
ECO120 Macroeconomics Rod Duncan Lecture 4- Measuring GDP, but what does it mean?
STATA TUTORIAL: LAB STATA windows  The command window  The viewer/results window  The review of commands window  The variable window.
Psid3.do Panel study of income dynamics Longitudinal data of 5000 households started in 1969 HH members followed annually since This example has 5-years.
Sociology 601(Martin) Lecture for week 2: September Chapter 3.1: –Making Charts Chapter 3.2 – 3.5 (if time permits) –Measures of central tendency.
An Introduction into Stata I Prof. Dr. Herbert Brücker University of Bamberg Seminar “Migration and the Labour Market” Session 3, June 9, 2011.
Getting Started with your data
Education Pays Education Pays.
Introduction to Stata Spring The role of statistical packages in research Obvious answer – Manage data – Carry out appropriate statistical.
Consumption calculations with real data – CORRECTED VERSION (CORRECTIONS IN RED) Gretchen Donehower Day 3, Session 2, NTA Time Use and Gender Workshop.
Section 5.1 Incomes and Other Quantities. Examples of Categorical Variables What is your gender? Did you see Toni Morrison last night? How confident are.
Day 1: Getting Started Department of Economics
Lecture 14: Factorial ANOVA Practice Laura McAvinue School of Psychology Trinity College Dublin.
Econometric Analysis Using Stata
Stata Workshop #1 Chiu-Hsieh (Paul) Hsu Associate Professor College of Public Health
Project organisation in Stata Adrian Spoerri and Marcel Zwahlen Department of Social and Preventive Medicine University of Berne, Switzerland Research.
Availability and Quality of Data Angela Me UNECE Statistics Division.
API-208: Stata Review Session Daniel Yew Mao Lim Harvard University Spring 2013.
MATH 2400 – Chapter 1 Vocabulary Individuals – the objects described by a set of data (doesn’t have to be people) Variable – any characteristic of an individual.
Key Data Management Tasks in Stata
Dr Micheál Collins NERI (Nevin Economic Research Institute) MLGCollins The Earnings Distribution.
A student guide To completing Level 1 & 2 portfolios.
Measuring Economic Activity It is also called NATIONAL INCOME ACCOUNTING. Why should we measure? - Observe a country’s performance over time. - Compare.
Chapters 1 and 2 Week 1, Monday. Chapter 1: Stats Starts Here What is Statistics? “Statistics is a way of reasoning, along with a collection of tools.
Organizing a project, making a table Biostatistics 212 Lecture 7.
Organizing a project, making a table Biostatistics 212 Session 5.
Organizing a project, making a table Biostatistics 212 Lecture 7.
Consumption calculations with real data Gretchen Donehower Day 3, Session 2, NTA Time Use and Gender Workshop Wednesday, May 23, 2012 Institute for Labor,
Chapter 02 Derek Laing The U.S. Labor Market. Labor Economics Copyright © 2011 by W.W. Norton & Company, Inc.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
Dr. Engr. Sami ur Rahman Research Methods in Computer Science Lecture: Data Analysis (Introduction to SPSS)
Getting Started with Stata 2/11/2010 Tom Tomberlin Nealia Khan Learning Technologies Center Harvard Graduate School of Education.
United Nations Economic Commission for Europe Statistical Division Availability and Quality of Gender Statistics Angela Me UNECE Statistics Division.
Basics of Biostatistics for Health Research Session 1 – February 7 th, 2013 Dr. Scott Patten, Professor of Epidemiology Department of Community Health.
PSC 47410: Data Analysis Workshop  What’s the purpose of this exercise?  The workshop’s research questions:  Who supports war in America?  How consistent.
Lesson 8 - Topics Creating SAS datasets from procedures Using ODS and data steps to make reports Using PROC RANK Programs in course notes LSB 4:11;5:3.
Using microsimulation model to get things right: a wage equation for Poland Leszek Morawski, University of Warsaw Michał Myck, DIW - Berlin Anna Nicińska,
FORMAT statements can be used to change the look of your output –if FORMAT is in the DATA step, then the formats are permanent and stored with the dataset.
1 Chapter 3: Getting Started with Tasks 3.1 Introduction to Task Dialogs 3.2 Creating a Listing Report 3.3 Creating a Frequency Report 3.4 Creating a Two-Way.
Today Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation – GOF.
Data & Graphing vectors data frames importing data contingency tables barplots 18 September 2014 Sherubtse Training.
Week 111 Review - Sum of Normal Random Variables The weighted sum of two independent normally distributed random variables has a normal distribution. Example.
Using Data from the National Survey of Children with Special Health Care Needs Centers for Disease Control and Prevention National Center for Health Statistics.
Stata Review Session Economics 1018 Abby Williamson and Hongyi Li November 17, 2006.
Measuring work and economic activity Workshop Title Location and Date.
Data Setup Mombasa Workshop Amonthep “Beet” Chawla.
Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation –
Ec 2390: Section 1 Useful STATA commands Jack Willis September 14th, 2015.
Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation –
Advanced Quantitative Techniques
EHS 655 Lecture 3: Types of data, basic Stata commands
Session 15 Merging Data in SPSS
Department of Economics The University of Melbourne
Introduction to SPSS.
CHAPTER 6: Two-Way Tables
Chapter 8 Employment, Unemployment, and Wages.
Chapter Ten Evidence on the Sources of Gender Differences in Earnings and Occupations: Supply-Side Factors versus Labor Market Discrimination Francine.
Chapter 26 Comparing Counts.
Exercise 1 Use Transform  Compute variable to calculate weight lost by each person Calculate the overall mean weight lost Calculate the means and standard.
A Brief Introduction to Stata(2)
Presentation transcript:

Department of Economics Trinity College Dublin, Ireland Day 2: Labour Market Participation and Income Earning Activities 1

Road map New commands Exercise 1 HH members working and earning income Exercise 2 Activities by gender and consumption quintiles Exercise 3 Diversification of income activities Income shares from income earning activities 2

Today’s commands egen name=stat(var1) : adds some summary statistic of var1 to the data as a variable. This command can be used with the ‘by’ command to generate this statistic for different categories. For example, ‘egen var1=sum(var2), by(var3)’ generates a variable called var1 which is the sum of var2 for different categories given by var3. See help egen for more details collapse (stat) list : collapses the data into statistics of the variables given in list. This command can be use with the ‘by’ command to collapse the dataset into statistics for different categories. For example, ‘collapse (mean) var1 var2, by(var3)’ will collapse the dataset into the mean of var1 and var2 for each of the categories given by var3 See help collapse for more details 3

Getting Started 1.Open the do-file “day2.do” stored in “C:\Data” 2.Write your name and the date in the title box 3.Clear all data from Stata’s memory 4.Set Stata up so that 200 megabytes of RAM is allocated to store the data 5.Set the path to “C:\Data” 6.Open a new log file called “day2.log” 4

Exercise 1 1.Open the data file “day2_1.dta” 2.‘count’ the number of observations in the data set 3.Use the ‘describe’ command to review the data in memory 4.Sort by individual 5

1.Working for wage/salary outside the household 2.Participating in Household production related to agriculture/forestry/aquaculture 3.Non-farm, non-wage activities, not housework (trading, services, transportations, other business) 4.Using common property resources to generate income for the household (fishing, hunting, gathering honey and berries) 5.Doing housework or chores 5 types of occupations 6

Exercise 1 1.Run the command lines in the do-file that create and label the following variables hh_active : Total number of HH members of active age hh_wage : Total number of HH members working for a wage outside of household hh_wage_prop: Proportion of active HH members working for a wage outside the household hh_hhprod: Total number of HH members working in the farm household enterprise hh_hhprod_prop: Proportion of active HH members working in the farm household enterprise 7

Exercise 1 2.Generate and label the following variables: hh_hhbus : Total number of HH members working in non-farm, non-wage activities, not housework hh_hhbus _prop: Proportion of active HH members working in non-farm, non-wage activities, not housework hh_hhprod: Total number of HH members working in the farm household enterprise hh_hhprod_prop: Proportion of active HH members working in the farm household enterprise hh_common: Total number of HH members engaged in common property use work hh_common_prop: Proportion of active HH members engaged in common property use work hh_house: Total number of HH members doing housework or chores hh_house_prop: Proportion of active HH members doing housework or chores 8

Exercise 1 3.Run the command lines in the do-file that create and label the following variables income : Individual HH member earning income hh_income: Total number of HH members earning income hh_income_prop: Proportion of active HH members earning income work: Individual HH member earning income hh_work: Total number of HH members working hh_work_prop: Proportion of active HH members working 4.Collapse hhsize hh_work hh_income wt9 by household 5.Replicate Figure 2.1 from the 2006 report using the 2008 data (Hints: don’t forget to use weights) 9

Exercise 2 1.Open the data file “day2_2.dta” 2.Use the ‘describe’ command to review the data in memory 3.Sort by individual 4.Run the command lines in the do-file that create and label the following variables work_male: Dummy variable “male working” hh_workmal: Total number of male HH members working hh_workmal_prop: Proportion of male active HH members working income_male: Dummy variable “male earning income” hh_incomemal: Total number of male HH members earning income hh_incomemal_prop: Proportion of male active HH members earning income wage_male: Male working for wage outside the household hh_wagemal: Total number of male HH members working for a wage outside of household hh_wagemal_prop: Proportion of male active HH members working for a wage outside of household 10

Exercise 2 5.Run the command lines in the do-file that create and label the following variables hhprod_male: Male working in the farm household enterprise hh_hhprodmal: Total number of male HH members working in the farm household enterprise hh_hhprodmal_prop: Proportion of male active HH members working in the farm household enterprise 11

Exercise 2 6.Generate and label the following variables: work_fem: Dummy variable “female working“ hh_workfem: Total number of female HH members working hh_workfem_prop: Proportion of female active HH members working for a wage outside of household" income_fem: Dummy variable “female earning income” hh_incomefem: Total number of female HH members earning income hh_incomefem:_prop: Proportion of female earning income wage_fem: Female working for wage outside the household hh_wagefem: Total number of female HH members working for a wage outside of household hh_wagefem_prop: Proportion of female active HH members working for a wage outside of household hhprod_fem: Male working in the farm household enterprise hh_hhprodfem: Total number of female HH members working in the farm household enterprise hh_hhprodfem_prop: Proportion of female active HH members working in the farm household enterprise 12

Exercise 2 7.Collapse hh_workfem_prop hh,_workmal_prop, hh_incomefem_prop, hh_incomemal_prop, hh_wagefem_prop, hh_wagemal_prop, hh_hhprodfem_prop, hh_hhprodmal_prop, hh_work_prop, hh_income_prop, fdpcquint, and wt9 by household 8.Replicate Column 1-4 Table 2.1 from the 2006 report using the 2008 data (Hint: don’t forget to use weights) 9.Replicate Graph a), b) of Figure 2.2 from the 2006 Report using the 2008 data (Hint: don’t forget to use weights) 13

Exercise 3 1.Open the data file “day2_3.dta” 2.Use the ‘describe’ command to review the data in memory 3.Count observations 4.Sort by household level 1.Run the command lines in the do-file that create and label the following variable hhdivers: number of activity types HH is involved in 5.Replicate Table 2.3 from the 2006 report using the 2008 data (Hint: don’t forget to use weights) 14

Exercise 3 6.A number of variables have to be created for Table 2.5. totinc: HH Total Income wageinc: HH Wage Income agroinc: HH Income from agricultural activities hhbusinc: HH Income from nonfarm/non-wage activities compropinc: HH Income from common property resources other: HH Other Income iwagesh: HH wage income as a share of total income iagrosh: HH income from agricultural activities as a share of total income ihhbussh: HH income from nonfarm/non-wage activities as a share of total income icompropsh: HH income from common property resources as a share of total income iothersh: HH other income as a share of total income A number of prompts and hints are given in the do-file 15

Exercise 3 7.Replicate Table 2.5 from the 2006 report using the 2008 data – Labor Income Share only (Hint: don’t forget to use weights) 8.Replicate Figure 2.5 from the 2006 report using the 2008 data (Hint: don’t forget to use weights) 9.Close the log file 16