3 (Data exercise) Policy makers are interested in examining Inctors affecting the smoking behavior. They collect a data
Posted: Wed Apr 27, 2022 11:51 am
3 (Data exercise) Policy makers are interested in examining Inctors affecting the smoking behavior. They collect a data set about individuals smoking behavior, including the following variable • id: individual index . age age of an individual • ages apesque • ciga: munber of cigarettes smoked per day • restaurn; whether the individual lived in a city which requires too smoking in testattants (0-10, 1ye) .educ: years of education Phase answer the following questiones using the dataset smoking.cta ager (a) Create a new variable indicating age group med age gtp, which takes the following valur for fage 30 1. if ngec (30.50) 2. if ape (50,70) 3. if age 270 Calculate the average of cigs for each age group, Do you think age and cigalus a monotonic relationship? Hint: we the Stata commal tabatat ciga, byCagegep) stat(nean). For the following questions estimate the following regression model ting OLS: cigs + 8 + Bage? + restaur+ (6) According to to regression results, at what point does the marginal effect of age on cige change from positive to negative (Round your answer to the nearest integer.) (c) Explain the meaning of its (d) Policy malors are interested in examining whether the partial effect of education on molting in different for individuals living in cities with to-stoking manulate. Estimate the following regression model ting OLS: cigs = " + clue + rarestaurn + restauracduc+. Write out the expression for a when restaurn = 0 and restaurn = 1. How to understand the meaning of ? () is a significant at 5% level?