Skip to content

a problem with external regressors in rugarch

2 messages · Alec Schmidt, Alexios Ghalanos

#
Alec,

The ugarchfit method calls R's arima in order to quickly calculate a set
of starting values prior to the joint ARMA-GARCH estimation. From
arima's documentation:

"If am xreg term is included, a linear regression (with a constant term
if include.mean is true and there is no differencing) is fitted with an
ARMA model for the error term"

You've included:

1. An intercept (matrix of 1's)...this is how 'include.mean' in arima
routine is interpreted.
2. All the days of the week (X)

This results in perfect multicollinearity, which means that it is not
possible to invert the matrix and solve the problem (which is why
leaving one out works). This is typically known as the "dummy variable
trap".

Therefore:
1. Leave one (day) out
2. Pass a demeaned dataset and set include.mean=FALSE


-Alexios
On 04/10/2013 03:01, Alec Schmidt wrote: