# 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 be viewed only if**

- The questioner was satisfied and accepted the answer, or
- The answer was disputed, but the judge evaluated it as 100% correct.

Mathe

2.6K

The answer is accepted.

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

- answered
- 1342 views
- $50.00

### Related Questions

- Probability and Statistics Question help please
- Explain how the binomial probability equation is $\frac{n!}{x!(n-x)!}(p^x)(q^x)$
- Find the maximum likelihood estimator
- Probability that a pump will fail during its design life
- Hypothesis Testing, Probabilities
- Writing a conclusion about data shown in Xbar and R control charts
- Confidence Interval - Poisson
- Explain how the mean of discrete variables is $\mu = \sum[x P(x)]$

The tested models are AR, TAR, STAR