简体   繁体   中英

GARCH-M model estimation in R

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.

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM