Search found 5 matches
- Thu Aug 31, 2023 2:16 am
- Forum: VARs (Vector Autoregression Models)
- Topic: conditional forecast
- Replies: 9
- Views: 90752
Re: conditional forecast
Thank you for your help! Maybe I have not thoroughly understood your code. Can I put the PRICE variable in a table and re-estimate and re-forecast the models? It means that if I could do the recursive program through each rows? Because PRICE variable is not a constant. And if I'd like to do a 3-step...
- Wed Aug 23, 2023 9:26 pm
- Forum: VARs (Vector Autoregression Models)
- Topic: conditional forecast
- Replies: 9
- Views: 90752
Re: conditional forecast
Yes, there are more data points in my data. I want to re-estimate the model each time. For example, in the first estimation, I estimate the model from 2007:8 to 2009:7 and forecast the values of variables on 2009:8. And in the second estimation, I re-estimate the model from 2007:9 to 2009:8 (always ...
- Wed Aug 23, 2023 3:06 am
- Forum: VARs (Vector Autoregression Models)
- Topic: conditional forecast
- Replies: 9
- Views: 90752
Re: conditional forecast
Thanks Tom. It works now, maybe I did something wrong before. And can I use RATS do loop statement based on conditional forecast? For example, If I want to use the data from the first 24 periods to predict the 25th period, and push forward one period each time for prediction. What type of program ca...
- Tue Aug 22, 2023 9:30 pm
- Forum: VARs (Vector Autoregression Models)
- Topic: conditional forecast
- Replies: 9
- Views: 90752
Re: conditional forecast
My conditional forecast code is as follows: OPEN DATA "C:\Users\geer\Desktop\four.csv" CALENDAR(M) 2007:8 DATA(FORMAT=PRN,NOLABELS,ORG=COLUMNS) 2007:08 2009:07 DEMAND OUTPUT PRICE IPRICE SYSTEM(MODEL=VAR1) VARIABLES DEMAND OUTPUT PRICE IPRICE LAGS 1 DET END(SYSTEM) ESTIMATE 2007:08 2009:07...
- Tue Aug 22, 2023 11:30 am
- Forum: VARs (Vector Autoregression Models)
- Topic: conditional forecast
- Replies: 9
- Views: 90752
conditional forecast
I am trying to use the conditional forecast example of the User's Guide, Section 7.7.2 (CONDITION.RPF). It is based on VAR model. However, the RATS displays an error message: I2. Expected Instruction Here. Do you know what's the error? The code is listed as follows: open data oecdsample.rat calendar...