Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

Introductory Econometrics

Homework 2

Please conduct the following data analyses:

1.    Open stata and start with a data set automatically comes with stata, called “auto.dta”, via the command, “sysuse auto” .

2.    Generate two new variables:

“log_price”, which is equal to the natural logarithm of the variable “price”; and “log_mpg”, which is equal to the natural logarithm of the variable “mpg” (Hint: use the “generate” command).

3.    Estimate the flowing regression equation:

loĝ_pTlCe =  +  log_mpg +  weigt +  Tep78++ ∙ ℎeadToom         (1)

On the column “Coef.”, stata reports the estimated parameters associated with each independent variable. Interpret the economic meaning of the estimates of  1   and  2 .

4.    Generate  a  new  variable,  weight2=0.01*weight,  then  regress  the  following  regression equation:

loĝ_pTlCe =  +  log_mpg +  weigt2 +  Tep78++ ∙ ℎeadToom         (2)

This practice helps to understand how estimated coefficients vary when we change the unit of measurement of data. What is the relationship between  2   and  2 ?

5.    Estimate the flowing regression equation:

lopg =  + ŷ1  ∙ weigℎt +  Tep78 +  ∙ ℎeadToom                           (3)

Generate a new variable, “r1”, that is equal to the residuals of the regression model (Hint: use the command “predict” after running the regression).

Further, estimate the following regression equation:

loĝ_pTlCe =  +  ∙ T1                                         (4)

Compare the estimate of    with the estimate of  1   in equation (1).

Print your “log.file” containing your codes and results. Submit it along with your answers for question 3, 4 and 5. You can simply write the answers as comments in the do file and run it to show them on the log file. Or you can write by hand on your printed log file.