ECON7310代写、代写R编程设计

ECON7310: Elements of Econometrics

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 points whenever 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 our grading work, please clearly label
all your answers. You should upload your research report (in PDF or Word format) via the
“Turnitin” submission link (in the “Research Project 1” folder under “Assessment”) by 11:59
AM on the due date April 24, 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 and misconduct policies on plagiarism apply.
Background
Use the cps09mar.csv dataset to estimate the effect of education on earnings. Data description
and variable definitions can be found in the document cps09mar description.pdf. For all
questions below, use the sub-sample of non-Hispanic women at least 23 years old.
Research Questions
1. (20 points) Load this dataset in R (2 points). Create a new variable
wage = earnings/(hours× week).
Obtain summary statistics (mean, standard deviation, 25, 50 (median), and 75 percentiles)
for wage and education (5 points). Plot histograms for these two variables to explore
their distributions. Make your histograms reader-friendly; that is, give informative ti-
tles and variable names instead of just using the default titles and variable names (6
points). For example, you could use Years of Schooling in place of education. Create
a new variable ln(wage)1 and draw a scatter plot of ln(wage) versus education (5 points).
Comment on the correlation between these two variables (2 points).
2. (25 points) Take the sub-sample of non-Hispanic women to estimate the simple linear
regression model:
ln(wagei) = β0 + β1educationi + ei. (1)
where ei is the error and β0 and β1 are the unknown population coefficients.
1In R, the function log() computes logarithms, by default natural logarithms.
1
(a) (3 points) Report the estimation results in a standard form as introduced in Lecture
5. For example, see page 5, where the estimates are presented in an equation form,
along with standard errors (SE) and some measure for goodness of fit.
(b) (3 points) Plot the estimated regression line you obtained in (a) on the scatter plot
you constructed in Question 1.
(c) (6 points) Interpret the estimated coefficient on education (3 points) and test
whether or not the population coefficient β1 is zero at the 1% significance level (3
points).
(d) (6 points) The hourly wage could also depend on one’s work experience. Under what
condition(s) would the estimates in (a) be biased and inconsistent due to the omission
of the work experience (4 points)? Explain whether the coefficient on education in
(a) would be overestimated or underestimated (2 points). Hint: Review pages 4 and
5 of Lecture 4.
(e) (7 points) Create a new variable experience = age ? education ? 6 to measure
one’s work experience. You want to include experience in regression (1) and regress
ln(wage) on education and experience. However, you are not sure whether to also
add a quadratic term, such as experience2, to the regression equation along with
experience. Use a hypothesis test to help you choose the more appropriate model
(4 points). Estimate your selected model and report the results in a standard form
(3 points).
3. (43 points) With the regression model that you selected in 2(e), you are still concerned
about omitted variable bias. For that reason, you decide to include more control variables
in the regression.
(a) (11 points) Include a set of dummy variables for regions and marital status and
estimate the extended model (4 points). For regions, create dummy variables for
Northeast, South, and West so that Midwest is the excluded group. For marital
status, create variables for married (marital ≤ 3), widowed or divorced, and sepa-
rated, so that single (never married) is the excluded group. Report a 95% confidence
interval for the slope coefficient on education (2 points), explain the relationship
between the confidence interval and hypothesis testing (2 points), and test the hy-
pothesis that one year of additional education would increase hourly wage by 12%
(3 points).
(b) (5 points) Using the estimation results, test the hypothesis that the hourly wage
is not affected by the geographic location (3 points). Explain how you reach your
conclusion (2 points).
(c) (8 points) Include a dummy variable black for black workers (race = 2) in the
model you considered in 3(b) and run OLS estimation. Explain what the estimated
coefficient on black means on hourly wage (3 points), compare the effect of being a
black worker and the effect of one year of additional education (2 points), and test
whether these two effects are of the same magnitude (3 points).
(d) (7 points) How would you modify the model to test if the effects on hourly wage
of one additional year of education differ between black and non-black workers (4
points). Implement your proposed test and report the results (3 points). Hint: See
pages 27–39 of Lecture 6.
(e) (7 points) Kate has 31 years of work experience. Using the regression model of
3(d), test if one additional year of work experience has significant effects on her
hourly wage (5 points). Provide a formula for calculating this effect (2 points). Hint:
Read pp. 9–17 of Lecture 6.
2
(f) (5 points) Betty is a married, white woman, working in Boston. After she obtained
her college degree (= 16 years of schooling), she got a job and started working instead
of getting a higher education. Now she has a five-year of experience in the industry.
Predict Betty’s hourly wage.2
4. (12 points) It may be more useful to estimate the effect on earnings of education by using
the highest diploma/degree rather than years of schooling. Define four dummy variables
to indicate educational achievements:
lt hs = 1 if education < 12
hs = 1 if education = 12
col = 1 if education ≥ 16
some col = 1 for all other values of education.
(a) (4 points) Create the dummy variables lt hs, hs, col, and some col as defined
above and compute the sample means of hourly wage for each of the four education
categories.
(b) (5 points) Replace the education in the regression model of 3(d) with these dum-
mies and estimate their coefficients. Can you obtain the OLS estimates for all these
four dummies? Explain your answer (3 points). Interpret the coefficient on hs (2
points).
(c) (3 points) Report estimation results of regressions in 2(e), 3(a), 3(c), 3(d), and 4(b)
using a table similar to those presented in your Tutorials 5–6. Hint: If you are not
familiar with LATEX, you can use the screenreg() function instead of texreg().
2Be careful! the left-hand side variable is ln(wage), but you are asked to predict Betty’s wage.

热门主题

课程名

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
站长地图