Question: 3: Piecewise linear regression (15 marks) Consider the simulated data: simulated.data - read.csv (simulatedData.csv) attach (simulated.data) (a) (3 marks) Fit a simple linear model. Using


3: Piecewise linear regression (15 marks) Consider the simulated data: simulated.data - read.csv ("simulatedData.csv") attach (simulated.data) (a) (3 marks) Fit a simple linear model. Using regression diagnostics, comment on the appropriateness of this model. (b) (3 marks) Fit a quadratic model. Using regression diagnostics, comment on the appropriateness of this model relative to part (a). (c) (3 marks) We will now consider a piecewise linear model of the form y={0+1x,2+3x,x=
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
