100 pointsThe following two problems will require a lot of calculations in STATA. It will generate many pages of output. Here is how your should organize it. The first pages should contain your answers to all the questions, along with showing any key algebraic equations or explanations you need to use along the way. After that, include a printout of the output from the regressions you executed in support of your answers. Highlight any numbers in this output that you used in the first section. (You are encouraged to save paper here, you may print this section with a small font, double-sided and/or with 2-up format.) Last, include a copy of the DO file that contains the commands you asked STATA to execute. Be sure you organize these in a way that will be clear to the reader.Problem 1In the dataset Smoke1, there is information on 1186 males from the United States. Data from this sample includes the variables:smoke= 1 for smokers, and 0 for nonsmokers in yearseduc= number of years of schoolingincome= family incomepcigs= an index of the average price of cigarettes in the individual’s statePart 1) Create a dummy variable “hi_ed” that is a 1 if a person has ?17 years of education, zero otherwise. Estimate a linear regression (which in this context is called a linear probability model (LPM)) for the binary variable smoke on the independent variable hi_ed. Report the beta coefficient on the dummy variable and its p-value. In words, express what the beta coefficient means in this case.Create a frequency table for the smoke and hi_ed variables. The command in STATA is tabulate smoke hi_ed.Calculate the probability that a person smokes if high education. Calculate the probability for smoking for low edcuation.What is the relationship between the results for parts b and d?Calculate the odds that a low education person smokes. Calculate the odds a high education person smokes. Calculate the odds ratio.Estimate the logistic regression (logistic command) for smoke and hi_ed. Confirm that this equals the odds ratio. In words, express what the odds ratio coefficient means in this case.Part 2)Estimate the logistic regression for smoke on pcigs when . Then, calculate the predicted values for Y. The command to do this is “predict yhat_0.” Repeat for when , and also create a predicted value variable yhat_1.Compare the coefficients for the two models. In words, explain what the model is saying about the impact of pcigs for the two different education groups.Create a graph of the predicted values for the two versions. Use the following syntax: twoway (line yhat_0 pcigs, sort) (line yhat_1 pcigs, sort), legend(label(1 "low ed") label(2 "hi ed"))For a low education person, a 1 unit change of the price index of cigarettes will change the odds of smoking by how much?Part 3)Run a logit regression (stata command logit) for smoke on the independent variables: age, educ, pcigs, income. Report the coefficients and p-values. This Model 1. Remember, for logit, (rather than logistic), the coefficients have not been exponentiated.Create an interaction variable of educ and income. Run another logit regression, adding this interaction to Model 1. Report the coefficients and p-values. This is Model 2.What differences strike you about Model 1 and Model 2? In particular, note how the signs and significance levels of the variables of educ and income have changed now that the interaction is included. In a clearly articulated paragraph (or two) give a thoughtful answer as to what you think must be going on. (This is not easy. Take your time and think hard about it.Your answer should contain two parts. First, talk about what the coefficients of the Model 2 regression are implying. Second, try and come up with an intuitive/economic hypothesis for why we are observing these results.)s##### #######P B#####

@###### #############

## ####### #####± @####P B

########## 7 Apr 2016

13:23#

educ#############################age#ht###########################inc

ome###########################pcigs#9##########################smoke############

############################%9.0g# #####%9.0g# #####%9.0g# #####%9.0g# #####%

%9.0g######%9.0g# #####%8.0g#######%8.0g#######%8%9.0g#####%9.0g#######

%9.0g#######%9.0g#######%8.%9.0g####%8.0g#######%8.0g#######%8.0g#######

%8.0%9.0g#######################################################################

################################################################################

##########################################################Education#06 spring

16statasmoke1.dta"#replace#a ##############################Age#ation#06 spring

16statasmoke1.dta"#replace#a ##############################family income#pring

16statasmoke1.dta"#replace#a ##############################Price of cigarettes

in individual's state#eplace#a ##############################= 1 for smokers;

=

0 for non-smokers#ate#eplace#a

#####################################@A## A# #FffrB######pA## A#PCFffrB## ?##

A## B#PCFffrB######@A## A#PCFffrB######@A###B#@ FffrB## ?

##pA##8B#` FffrB######@A##hB#` FffrB######XA## A#` FffrB## ?###### B#

EffrB######@A## A#@ FffrB## ?## A##,B#@ FffrB## ?

##XA## A#` FffrB###### A##8B#@ FffrB######@A##hB#` FffrB## ?

## A##XB#@ FffrB######@A##@B#@ FffrB###### @## B# ZEffrB######XA##|

B# #FffrB######

A###B# #F

sB###### A## A#` F33sB######XA##TB#@ F33sB######pA##0B#` F33sB## ?##

A##|B#@ F33sB###### A## A#@ F33sB## ?##XA## A#PCF33sB## ?##@A###B#@ F33sB## ?

###A## B# #F33sB###### A##@B#` F33sB## ?

###A## B#PCF##vB######@A###B#@ F##vB######XA## A#` F##vB#######A## B#@ F##vB## ?

##pA##B#PCF##vB###### A## B#@ F##vB###### A###B#` F##vB## ?## A##B#

EffxB###### A## A#

EffxB## ?###A## B#@ FffxB###### A## B# EffxB## ?

## A## A#` FffxB###### A##

STATUS

Answered

QUALITY

Approved

ANSWER RATING

Answered

QUALITY

Approved

ANSWER RATING

This question was answered on: * May 23, 2022 *

This attachment is locked

Our expert Writers have done this assignment before, you can reorder for a fresh, original and plagiarism-free copy and it will be redone much faster (Deadline assured. Flexible pricing. TurnItIn Report provided)

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .

Answered

QUALITYApproved

DATE ANSWEREDMay 23, 2022

EXPERTTutor

ANSWER RATING

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

- ■ As a reference for in-depth understanding of the subject.
- ■ As a source of ideas / reasoning for your own research (if properly referenced)
- ■ For editing and paraphrasing.

This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student. Get Free Price Quote