Consider the following R-Studio code:
1 2 3 4 5 6 7 8 9 10 11 12
n
set.seed (12345+i)
y
model
b1hat[i] If you run this code:
(a) Give the full expression of the data generation process represented in this code.
(b) How many estimates of the beta 1 parameter is this code producing?
(c) Draw what you think would be the density histogram obtained with all the beta 1 estimates. Don’t forget to label the axis! Indicate with a black dot where the distribution would be centered approximately. No need to justify.
(d) Explain verbally how you would modify this code to illustrate the consistency of the OLS estimator. Your answer needs to include the modied version of the line(s) which you would change. Justify.
#Sales Offer!| Get upto 25% Off: