Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Finance questions