Question
3. The file w logret 3automanu.txt contains the weekly log returns of three auto manufacturers, General Motors Corp., Ford Motor Corp., and Toyota Motor Corp.,
3. The file w logret 3automanu.txt contains the weekly log returns of three auto manufacturers, General Motors Corp., Ford Motor Corp., and Toyota Motor Corp., from the week of January 3, 1994 to the week of June 25, 2007. Consider the regression model GM = ?0 + ?1Toyota + ?2Ford + .
Write R code to solve the following.
(a) Estimate ?0, ?1 and ?2 by least squares and give their 95% confidence intervals.
(Note the confidence intervals can be obtained by confint(fit,level=0.95), where fit is the fitted model from lm().)
(b) Test the null hypothesis H0 : ?1 = 0 vs HA : ?1 6= 0 and give the pvalue.
(c) Perform regression diagnostics of the fitted regression model by relevant plots and statistics. Conclusions must be based on patterns observed in the plots or values of the statistics.
(d) Identify high leverage observations based on Cook's distance, if there are any.
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