1

is it possible to estimate a GARCH with volatility in the mean using R?

I read that it may be possible with rgarch package but I have some trouble installing it. Is there any other way?

The model is:

  r[t] = mu + c*s[t]^2 + a[t],

  a[t] = s[t]*e[t],

  s[t]^2 = alpha0 + alpha1 * a[t-1]^2 +  beta1 * s[t-1]^2,

Regards,

Juan.

Fortranner
  • 2,525
  • 2
  • 22
  • 25
user2794659
  • 145
  • 2
  • 14
  • instead of looking for a new package, why don't you tell us what the problem was while installing the rugarch package. – sidquanto Nov 24 '13 at 13:58

1 Answers1

1

Ruey Tsay has published a garchM function. Save the code and load it into R using the source function:

source('/path/to/garchM.R')

The garchM function can be used as follows:

data <- read.table('/path/to/data.txt')
returns <- data$rtn * 100
garchM(returns)