Question: Please answer 2b only. How to create a new variable by using Stata in this question? The variables in your data set are: Inr!food the

 Please answer 2b only. How to create a new variable by

Please answer 2b only. How to create a new variable by using Stata in this question?

The variables in your data set are: Inr!food the log of household food expenditure, Ihhexpl the log of household total expenditure, age-the age in years of the head of household. educyr98 years of education of the head of household, hhsize - the size of the household, farm which equals 1 for a farm household and 0 for a non-farm household, and urban which equals 1 for an urban houshold and 0 for a rural houshold. 1. For each of the variables Inrlfood, farm, and hhsize, what is the average, the standard deviation, the minimum value, and the maximum value in your data set? What is the number of observations in your data set? 2. (a) What percentage of households are urban? What is the average household size for urban housholds! (b) Create a new variable, agegroup, which takes value 1 if the individual is younger than 25 years, value 2 for age group 25-29, 3 for age group 30-34, 4 for age group 35-39, 5 for age group 40-44, 6 for age group 45-49, and 7 for ages 50 and above. Tabulate the new variable. The variables in your data set are: Inr!food the log of household food expenditure, Ihhexpl the log of household total expenditure, age-the age in years of the head of household. educyr98 years of education of the head of household, hhsize - the size of the household, farm which equals 1 for a farm household and 0 for a non-farm household, and urban which equals 1 for an urban houshold and 0 for a rural houshold. 1. For each of the variables Inrlfood, farm, and hhsize, what is the average, the standard deviation, the minimum value, and the maximum value in your data set? What is the number of observations in your data set? 2. (a) What percentage of households are urban? What is the average household size for urban housholds! (b) Create a new variable, agegroup, which takes value 1 if the individual is younger than 25 years, value 2 for age group 25-29, 3 for age group 30-34, 4 for age group 35-39, 5 for age group 40-44, 6 for age group 45-49, and 7 for ages 50 and above. Tabulate the new variable

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!