Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this question, our response variable is cmort (Mt) from astsa package: Average weekly cardiovascular mortality in Los Angeles County; 508 six-day smoothed averages

In this question, our response variable is cmort (Mt) from astsa package: Average weekly cardiovascular 

In this question, our response variable is cmort (Mt) from astsa package: Average weekly cardiovascular mortality in Los Angeles County; 508 six-day smoothed averages obtained by filtering daily values over the 10 year period 1970-1979. For the predictor variables, we're going to consider tempr (Tt), part (Pt), trend (t), and it's modified variables. To be more specific, we're going to consider . t.cm: t temp: T - T temp2: (T-T.) part: P partL4: Pt-4 (a) Using ts.intersect() function, create a dataset containing your response variable and all predictor variables in matching timeframe. After that, divide that dataset into two parts, training (containing first 400 observations) and test dataset (containing rest). temp-tempr-mean (tempr) temp2=temp^2 t.cm-time (cmort) partL4=lag (part, -4) (b) Fit a linear regression model Mt Bo + Bit + B2 (Tt - T) + B3(Tt - T) + B4Pt+B5Pt-4 + Wt to your training dataset. print out the result. (c) Find the accuracy of your model using the test data. What is your test RMSE?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

It seems that you are working with time series data and youre tasked to perform a regression analysis using a set of predictors You will first create ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managerial Economics Foundations of Business Analysis and Strategy

Authors: Christopher Thomas, S. Charles Maurice

12th edition

1260004759, 9781260004755, 78021715, 78021718, 78021901, 978-0078021909

More Books

Students also viewed these Programming questions

Question

=+e) What probably happened to earnings after the initial 17 days?

Answered: 1 week ago