Different length in conditional forecasts: 'plan' and 'condition'

40 views
Skip to first unread message

Hector Herrada

unread,
Mar 11, 2014, 6:05:35 PM3/11/14
to iris-t...@googlegroups.com
Hi folks, I was wondering if there is a way to generate conditional forecasts on multiple variables but that we have different judgmental k future step lengths for each of these variables.

Thanks!

H

Jaromir Benes

unread,
Mar 11, 2014, 6:07:02 PM3/11/14
to Hector Herrada, the-iris-toolbox [discussion forum]
Sure, just use a separate "condition" or "exogenize" command in the plan for each variable (or a group of variables with the same conditioning horizon).


--
You received this message because you are subscribed to the Google Groups "iris-toolbox-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iris-toolbox...@googlegroups.com.
To post to this group, send email to iris-t...@googlegroups.com.
Visit this group at http://groups.google.com/group/iris-toolbox.
For more options, visit https://groups.google.com/d/optout.

Hector Herrada

unread,
Mar 12, 2014, 10:35:15 AM3/12/14
to iris-t...@googlegroups.com, Hector Herrada
Hi Jaromir, thanks for your reply. The script would therefore look something like:

plann1       = plan(Model,Range_X1);
plann2       = plan(Model,Range_X2);

plann1       = condition(plann1,X1),Range_X1);
plann2       = condition(plann2,X2,Range_X2);

But how would the 'jforecast' syntax would look like?

condforecast = jforecast(Model,Data,...);

Thanks!

Michael Johnston

unread,
Mar 12, 2014, 10:38:27 AM3/12/14
to Hector Herrada, iris-t...@googlegroups.com
Close. Should look like this: 

p = plan(Model,Range_X1);

p = condition(p,'X1',Range_X1);
p = condition(p,'X2',Range_X2);

But how would the 'jforecast' syntax would look like?

condforecast = jforecast(Model,Data,forecast_range,'plan=',p);

Hector Herrada

unread,
Mar 12, 2014, 10:41:48 AM3/12/14
to iris-t...@googlegroups.com, Hector Herrada
what if Range_X2 is longer than Range_X1? The part that confuses me is when we create the plan with a shorter range and then input a longer range as a condition.

Thanks!

Michael Johnston

unread,
Mar 12, 2014, 10:46:39 AM3/12/14
to Hector Herrada, iris-t...@googlegroups.com
Typically I use a plan range which corresponds to the range of the entire forecast horizon. This is just a blank plan object. Then you can add particular periods over which you want to condition particular variables, or exogenise, etc. E.g. 

rang = startfcst:endfcst ;
p = plan(m,rang) ;

p = condition(p,'X1',x1_condition_range) ;
p = condition(p,'X2',x2_condition_range) ;

u = jforecast(m,d,rang,'plan=',p)

...




Hector Herrada

unread,
Mar 12, 2014, 10:47:36 AM3/12/14
to iris-t...@googlegroups.com, Hector Herrada
That makes sense. Thanks, Michael!
Reply all
Reply to author
Forward
0 new messages