Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Generateacovariatematrix X ofdimension nk,where n=250 and k= 4.The first column in X should be a column of ones and the other three columns can be
Generateacovariatematrix X ofdimension nk,where n=250 and k= 4.The first column in X should be a column of ones and the other three columns can be generated from a relatively diffuse normal or uniform distribution.Let= (0.5,0.75,1,1.25)and let2= 1.Conditionally on your covariate matrix X andtheparameters,pleasesimulate5differentdatasamples y fromthemodel y=X+, whereN(0,2In).For each sample y, estimate by ordinary least squares and report your 5 sets of estimates OLS in a table.Are you able, on average, to recover the true?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started