Forecast with endogenous and exogenous variables
Posted: Mon Jan 05, 2009 1:51 am
Hi !
I am using a vector error correction model (VEC) to perform forecast with. When I run the program (see below) it assumes that all variables are endogenous. Is it possible to keep only one the variables as endogenous and the rest as exogenous ? Maybe I need to add something to the .solve line....I hope there is someone who can help me!
Niels
'Estimate VEC-model with 1 cointegration relationship
var vec1.ec(c,1) 1 2 eurusd m1_usdeur ip_usdeur _3m_usdeur @ seas02 seas03 seas04 seas05 seas06 seas07 seas08 seas09 seas10 seas11 seas12
'Make model out of estimated VEC
var.makemodel(mod1)
'Reset sample to forecast period
smpl @first+!i+!window-1 @first+!i+!window-2+!step
'Solve model to obtain dynamic forecasts and save forecasts in temporary series first
mod1.solve (f=na) tmp_eurusd_fc tmp_eurusd_fc_se
I am using a vector error correction model (VEC) to perform forecast with. When I run the program (see below) it assumes that all variables are endogenous. Is it possible to keep only one the variables as endogenous and the rest as exogenous ? Maybe I need to add something to the .solve line....I hope there is someone who can help me!
Niels
'Estimate VEC-model with 1 cointegration relationship
var vec1.ec(c,1) 1 2 eurusd m1_usdeur ip_usdeur _3m_usdeur @ seas02 seas03 seas04 seas05 seas06 seas07 seas08 seas09 seas10 seas11 seas12
'Make model out of estimated VEC
var.makemodel(mod1)
'Reset sample to forecast period
smpl @first+!i+!window-1 @first+!i+!window-2+!step
'Solve model to obtain dynamic forecasts and save forecasts in temporary series first
mod1.solve (f=na) tmp_eurusd_fc tmp_eurusd_fc_se