# Can someone explain why the attached R-Studio Code, provided by the author, does not create the output like in his book?

Hello,

in Chapter 9.9 in the "Book Applied Economic Forecasting Using Time Series Method" by Ghysels, the US industrial production growth is modeled and forecasted using three different models in R-Studio. The result ist presented in the book. The R-Skript is provided by the author. However, every time I try running the skript by myself, I recieve a different result compared to the author. I tried a lot and I dont know what I am doing wrong, since I use the same code.

I would kindly ask to check the R-Code and give me an answer why the forecast differs from the one in the book, even though it should be the correct code, since it is provided by the author.

Thank you very much!

The data, code and results are attached.

Sirsir

12

## Answer

**Answers can only be viewed under the following conditions:**

- The questioner was satisfied with and accepted the answer, or
- The answer was evaluated as being 100% correct by the judge.

Mathe

3.4K

The answer is accepted.

Join Matchmaticians Affiliate Marketing
Program to earn up to a 50% commission on every question that your affiliated users ask or answer.

- answered
- 1669 views
- $50.00

### Related Questions

- How do I meaningfully display Kruskal Wallis Data when I have a lot of zeroes?
- Need help with negative proportions in experiment
- How do we describe an intuitive arithmetic mean that gives the following? (I can't type more than 200 letters)
- Probability that the distance between two points on the sides of a square is larger than the length of the sides
- Statistics for argumentative data and politics
- How would I write an acceptance-rejection algorithm for this problem
- Explain how the binomial probability equation is $\frac{n!}{x!(n-x)!}(p^x)(q^x)$
- Questions for Statistics Project

The tested models are AR, TAR, STAR