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.
 

热门主题

课程名

int2067/int5051 bsb151 babs2202 mis2002s phya21 18-213 cege0012 mgt253 fc021 mdia1002 math39512 math38032 mech5125 cisc102 07 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 efim20036 mn-3503 comp9414 math21112 fins5568 comp4337 bcpm000028 info6030 inft6800 bcpm0054 comp(2041|9044) 110.807 bma0092 cs365 math20212 ce335 math2010 ec3450 comm1170 cenv6141 ftec5580 ecmt1010 csci-ua.0480-003 econ12-200 ectb60h3f cs247—assignment ib3960 tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 econ7230 msinm014/msing014/msing014b math2014 math350-real eec180 stat141b econ2101 fit2004 comp643 bu1002 cm2030 mn7182sr ectb60h3s ib2d30 ohss7000 fit3175 econ20120/econ30320 acct7104 compsci 369 math226 127.241 info1110 37007 math137a mgt4701 comm1180 fc300 ectb60h3 llp120 bio99 econ7030 csse2310/csse7231 comm1190 125.330 110.309 csc3100 bu1007 comp 636 qbus3600 compx222 stat437 kit317 hw1 ag942 fit3139 115.213 ipa61006 econ214 envm7512 6010acc fit4005 fins5542 slsp5360m 119729 cs148 hld-4267-r comp4002/gam cava1001 or4023 cosc2758/cosc2938 cse140 fu010055 csci410 finc3017 comp9417 fsc60504 24309 bsys702 mgec61 cive9831m pubh5010 5bus1037 info90004 p6769 bsan3209 plana4310 caes1000 econ0060 ap/adms4540 ast101h5f plan6392 625.609.81 csmai21 fnce6012 misy262 ifb106tc csci910 502it comp603/ense600 4035 csca08 8iar101 bsd131 msci242l csci 4261 elec51020 blaw1002 ec3044 acct40115 csi2108–cryptographic 158225 7014mhr econ60822 ecn302 philo225-24a acst2001 fit9132 comp1117b ad654 comp3221 st332 cs170 econ0033 engr228-digital law-10027u fit5057 ve311 sle210 n1608 msim3101 badp2003 mth002 6012acc 072243a 3809ict amath 483 ifn556 cven4051 2024 comp9024 158.739-2024 comp 3023 ecs122a com63004 bms5021 comp1028 genc3004 phil2617
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图