Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

Please bare with me I am VERY new to R and forecasting (enrolled in my first course now). As part of a homework assignment, we are asked to "Choose your favorite model and implement a recursive and a rolling estimation scheme." I have searched for many hours trying to figure out how to do this in R and I can't quite get it. If anybody can provide me with some help I would greatly appreciate it!!!

Full Question: Using the same data set as in Exercise 3 and for house price growth, run several regression models with one, two, three, and four lags of price growth in the rightâ hand side of the model. Analyze the regression results. Choose your favorite model and implement a recursive and a rolling estimation scheme. Plot the time series of the estimates of the regression coefficients and observe how much they change over time.

My Code so far:

PRQ <- read_excel("~/Desktop/144/HW2/Chapter4_exercises_data.xls",sheet = "Exercise 3")

price_ts<-ts(PRQ$P,start = 1980:2, freq=4)

r_price <- diff(log(price_ts)) ##growth rate

lag<-append(NA, r_price[-length(r_price)])

lag2<-append(NA, lag[-length(lag)])

lag3<-append(NA,lag2[-length(lag2)])

lag4<-append(NA, lag3[-length(lag3)])

y1<-lm(r_price~lag)

y2<-lm(r_price~lag+lag2)

y3<-lm(r_price~lag+lag2+lag3)

y4<-lm(r_price~lag+lag2+lag3+lag4)

summary(y1)

summary(y2)

summary(y3)

summary(y4)

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M92285682
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Statistics and Probability

A researcher selects from a participant pool of 8 males and

A researcher selects from a participant pool of 8 males and 11 females. He determines that the probability of selecting 2 female participants is p = .335. Based on this probability, what strategy did the researcher use t ...

Question 1 decision theorythere are two available

Question: 1. Decision Theory There are two available diagnostic methods ¬- D1 and D2 - to predict if a tissue sample is benign or malignant. Ninety percent of the samples processed are benign. The performance of the diag ...

An aerospace company has submitted bids on two separate

An aerospace company has submitted bids on two separate federal government  defense contracts, AandB . The company feels that it has a 60% chance of winning contract Aand a 30% chance of winning contractB . If it wins co ...

A researcher working at a particular company wants to know

A researcher working at a particular company wants to know if workers' health would improve if they were given extra days 'off. In this company, all workers undergo a standard physical exam twice a year and after each ex ...

You can invest money each month at 6 percent interest

You can invest money each month at 6 percent interest compounded monthly over the next 30 years. In 30 years, you will take all the money you invested and put it into an account earning 8 percent compounded monthly. Then ...

Data are collected on the relationship between the number

Data are collected on the relationship between the number of hours per week practicing a musical instrument and scores on a math test. The line of best fit is as follows: y = 72.5 + 2.8x. What would you predict the score ...

You decide to research further this seemingly contradictory

You decide to research further this seemingly contradictory guidance, hypothesizing that the  true population average core body temperature  amidst higher ambient temperature and humidity levels while using an electric f ...

A firm evaluates all of its projects by applying the irr

A firm evaluates all of its projects by applying the IRR rule. Year Cash Flow 0 -$ 153,000 1 78,000 2 67,000 3 49,000 What is the project's IRR? If the required return is 11 percent, should the firm accept the project? Y ...

If material hardness is normally distributed with a mean of

If material hardness is normally distributed with a mean of 42 and a standard deviation of 1. Specification limits for hardness are from 35 to 45. When the fraction defective is 0.0017 what is the corresponding PPM?

Lt a and b be two events where pa 048 pb 022 and pbcac

Let A and B be two events where P(A) = 0.48, P(B) = 0.22, and P(BC|AC) = 0.91. What is the probability of A or B (a union b)?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As