In this question, our response variable is cmort (Mt) from astsa package: Average weekly cardiovascular mortality...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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? 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?
Expert Answer:
Answer rating: 100% (QA)
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 ... View the full answer
Related Book For
Managerial Economics Foundations of Business Analysis and Strategy
ISBN: 978-0078021909
12th edition
Authors: Christopher Thomas, S. Charles Maurice
Posted Date:
Students also viewed these programming questions
-
Quantum Builders Incorporated has no debt, a total equity capitalization of $50 billion, and a beta of 2.0. Included in Quantums assets are $12 billion in cash and risk-free securities. Calculate...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
You are a strategic marketing consultant, working on a freelance basis for Wedding Wheels, to advise them on business and marketing improvement. Wedding Wheels are a privately-owned bus hire company,...
-
A health club has cost and revenue functions given by C = 10,000 + 35q and R = pq, where q is the number of annual club members and p is the price of a one year membership. The demand function for...
-
A particle of mass m moving along the x axis with a velocity component +u collides head-on and sticks to a particle of mass m/3 moving along the x axis with the velocity component -u. What is the...
-
Acetylene (C2H2) and benzene (C6H6) have the same empirical formula. In fact, benzene can be made from acetylene as follows: The enthalpies of combustion for C2H2 and C6H6 are -1299.4 kJ/mol and...
-
True or False. Gathering data is all that is required for a successful trending program.
-
MFG Inc. has two alternative means of manufacturing its product. Process A has fixed costs of $21,000 per period and a variable cost of $6 per unit. Process B requires fixed costs of $45,000 per...
-
Company Tau and Company Upsilon are the only sellers of a good with no close substitutes. They are each considering whether to increase their store hours. They project the following daily profit...
-
Solve y" + y = 1 - t 2 / 2 ? if 0 < t < and 0 if t ?? ??; here, y(0) = 0, y' (0) = 0. This models an undamped system on which a force F acts during some interval of time (see Fig. 59), for instance,...
-
Discuss about the importance of biochemical process in an anaerobic digestion. A farmer needs to manage cattle dung of 100 kg daily (animal dung contains 16% VS) in his farm house located in...
-
Cultural competence is the ability to provide effective services cross-culturally. Diversity consciousness is a set of developed skills and awareness in the area of diversity. Diversity is present...
-
Business integration is strategic management- stakeholders and shareholders stock markets apply a conglomerate discount of 20% on unrelated Diversified firms ,this means that the investors understand...
-
A suggested approach for effective presentation of a policy analysis report is to include highlights as: ( ) value judgement embodied in the cost-benefit technique ( ) value in the cost-benefit...
-
what is meant by self awareness, self concept and self esteem. What are the primary differences?
-
When we try to define mass communication, there are a number of related questions. For example: "What is the message?" or "What do we mean by 'audience?". Define the terms "message" and "audience"...
-
= A particle of mass m is at the stable equilibrium pasition of its potential energy V(x) = ax-bx, where a, b are positive constants. The minimum velocity that has to be imparted to the particle to...
-
Government is advised to tax goods whose demand curves are inelastic if the goal is to raise tax revenues. If the goal is to discourage consumption, then it ought to tax goods whose demand curves are...
-
In the technology choice game presented in Figure 13.4, draw the game tree when Sony makes its technology decision first. Find the outcome of the game using the roll-back method. Does Sony experience...
-
In an article about the financial problems of USA Today, Newsweek reported that the paper was losing about $20 million a year. A Wall Street analyst said that the paper should raise its price from 50...
-
For each pair of price elasticities, which elasticity (in absolute value) is larger? Why? a. The price elasticity for carbonated soft drinks or the price elasticity for Coca-Cola. b. The price...
-
In Fig. 1130, there is no explicit invariant that states that a Transaction cannot be linked to movements that are linked to the same account, because the structure of the model already demands is....
-
Apply the Account/Transaction pattern to the parallel financial transactions of the example shown in Figs. 1131 to 1135. As the bills may be paid forward, it may be necessary to use memo entries....
-
Look at Fig. 1119 and create a new discount strategy that gives a percentage of discount for sales with more than a certain number of products. Order | < > < > +nr: Natural = < > +date: Date...
Study smarter with the SolutionInn App