1ECON7310代写、代写R编程语言

1ECON7310: Elements of Econometrics
November 14, 2022
Instruction
Answer all questions following a similar format of the answers to your tutorial questions. When
you use R to conduct empirical analysis, you should show your R script(s) and outputs (e.g.,
screenshots for commands, tables, and figures, etc.). You will lose 2 pointswhenever you fail to
provide R commands and outputs. When you are asked to explain or discuss something, your
response should be brief and compact. To facilitate tutors’ grading work, please clearly label
all your answers. You should upload your answers (in PDF or Word format) via the “Turnitin”
submission link (in the“Final Problem Set” folder under “Assessment”) by 11:59 AM on the
due date November 17, 2022. Do not hand in a hard copy. You are allowed to work on this
assignment in groups; that is, you can discuss how to answer these questions with your group
members. However, this is not a group assignment, which means that you must answer all the
questions in your own words and submit your report separately. The marking system will check
the similarity, and UQ’s student integrity andmisconduct policies on plagiarism apply.
1 . Panel Data Regression (20 points)
You investigate the deterrent effects of execution onmurder using the panel datasetmurder .csv,
which includes the (U.S.) state-level data on murder rates and executions.
(a) (4 points) Consider the following model with unobserved effects:
mrdrteit = λt+ β1 execit+ β2unemit + αi + uit , (1)
where execit denotes the number of past executions of state i by year t, mrdrteit and
unemitdenote the murder and unemployment rate of state i in year t, respectively. Which
factor in the model (1) does represent unobserved state fixed effect (1 point)? Year fixed
effect (1 point)? If past executions of convicted murderers have a deterrent effect, what
should be the sign of β 1 (1 point)? What sign do you think β2 should have (1 point)?
(b) (8 points) Using the data for all three years (1987, 1990, and 1993), estimate the equation
(1) by OLS and report estimation results (2 points).1 Compute cluster-robust standard
errors (SE). Why not just simply compute the heteroskedasticity-robust SE (2 points)?
Howmany“clusters” do you have in the data (2 points)? Do you find any evidence for
deterrent effects (2 points)? Hint: Use time dummies to estimate time effects.
(c) (8 points) Now, using the data for all three years, estimate the equation (1) by fixed effects
(FE) regression and report estimation results (2 points). Again compute cluster-robust
SE. Is there any evidence of deterrent effects (2 points)? Is there any evidence of time
effects (2 points)? Compare the estimation results obtained in (b) and (c). Comment on
your findings (2 points).
1 Here you can treat α i + uit as a composite error term of the regression model (1 ) .
22 . Binary Choice Models (20 points)
You want to study female labor force participation using a sample of 872 women from Switzer-
land (swiss .csv). The dependent variable is participation (=1 if in labor force), which you
regress on all further variables plus age squared; i.e., on income, education (years of schooling),
age, age2 , numbers of younger and older children (youngkids and oldkids), and on the factor
foreign, which indicates citizenship (=1 if not Swiss).
(a) (7 points) Run this regression using a linear probability model (LPM) and report the
regression results (3 points). Test if age is a statistically significant determinant of female
labor force participation (2 points). Is there evidence of a nonlinear effect of age on the
probability of being employed (2 points)?
(b) (7 points) Repeat (a) using a probit and logit regression model and report your results.2
(c) (6 points) Use the models of LPM and probit to compute the predicted probability of
being in the labor force for a Swiss female with median income and age of the sample, 12
years of schooling, one young kid, and no old kid.
3 . IV Regression (40 points) 3
You use the following regression model and dataset cigbwght .csv to estimate the effects of
several variables, including cigarette smoking, on the weight of newborns:
log(bwght) = β0 + β1male + β2parity + β3 log(faminc) + β4 smoke + u, (2)
where male is a dummy variable equal to 1 if the child is male; parity is the birth order of
this child; faminc is family income (in $1000); and smoke is a dummy variable equal to 1 if the
mother smoked during pregnancy.
(a) (4 points) Obtain OLS estimates of the regression equation (2) and report regression
results.
(b) (5 points) Interpret the estimated coefficient on smoke (3 points) and test whether the
population coefficient β4 is zero at the 1% significance level (2 points).
(c) (10 points) Some studies suggest that smoking during pregnancy may have different im-
pacts onmale and female babies. Modify the specification of the regressionmodel (2) and
test this hypothesis (5 points). In your modified model, does smoke still has significant
(at 5% level) effects on the weight of newborns (2 points)? Explain your answer using test
results (3 points). Hint: You don’t need to report regression results here, but writing out
your modified regressionmodel may be helpful.
(d) (7 points) One of your classmates expresses her concern about the validity of your re-
gression analysis and argues that there may be unobserved health factors correlated with
smoking behavior that affect infant birth weight. For example, women who smoke during
pregnancy may, on average, drink more coffee or alcohol, or eat less nutritious meals. If
this is the case, do you think the OLS estimates you obtained in (a) are unbiased (con-
sistent) (2 points)? Explain your answer (3 points). Is this a threat to your regression
analysis’s internal or external validity (2 points)?
(e) (4 points) You classmate then propose to use cigarette tax (cigtax) in each woman’s state
of residence as an instrumental variable (IV) for smoke and run a two-stage least squares
2 You don’ t need to compute robust SE here.
3 For all OLS and TSLS regressions in this question, compute heteroskedasticity- robust SE.
3(TSLS) regression. Take her suggestion and report your TSLS regression results. Hint:
Use the model (2) for your TSLS regression. You can use the iv robust() function in
the estimatr package to run TSLS regression and calculate robust SE.
(f) (10 points) Are coefficients of model (2) exactly identified, overidentified, or underidenti-
fied (2 points)? Does this TSLS regression suffer from the weak IV problem (2 points)?
Why or why not (2 points)? Is it possible to test the exogeneity of cigtax as an IV for
smoke (2 points)? Explain your answer (2 points).
4. Time Series (20 points)
The data file sp500d .csv contains daily data on S&P 500 index from 2000–2015. S&P 500 is
usually regarded as a gauge of the large cap U.S. equities market. Here you use this data to
examine the historical“returns”of investing in the S&P 500.
(a) (5 points) Let Yt denote the S&P 500 index. Draw a time series plot of Yt (2 points). Do
you think Yt is a stationary time series (1 point)? Are yt = log(Yt) and ?yt = yt? yt ? 1
stationary (2 points)?4
(b) (3 points) Use OLS to estimate the following AR(1) model5
yt= θ0 + θ1 yt 1 + et
Does the AR(1) model fit the data well (1 point)? Explain your answer (2 points).
(c) (8 points) For the following AR(p) model
yt = θ0 + θ1 yt 1 + ··· + θpyt p + et ,
try p = 1, 2, 3, 4. You want to select the optimal number of lags (i.e., p) using AIC and
BIC as criteria. Which model do you think is the best (1 point)? Justify your choice (3
points). For the AR(p) model you select, compute the first five autocorrelations of the
regression residuals, t (2 points). Do you think the errors et of your selected model are
serially correlated (2 points)? Hint: You can calculate t manually using its definition or
alternatively apply the resid() function.
(d) (4 points) Let T denote the last trading day in the data. Forecast yT+1 and yT+2 .
4 Recall that log( x) represents the natural logarithm of x, i. e. , the logarithm to the base e.
5 Assume {et } to be homoskedastic and independent over time in this and all subsequent questions.
 

热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图