(no subject)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

papa
Dear All,

Please, I have run the codes below and have errors as below: Please what do we do to avoid/rectify this error.


spec3=ugarchspec(variance.model = list(model = "fGARCH", garchOrder = c(1,
1), submodel ="TGARCH", external.regressors = xxx, variance.targeting = FALSE),
mean.model = list(armaOrder = c(5, 0), include.mean = TRUE,
archm = FALSE, archpow = 1, arfima = FALSE, external.regressors = NULL),
distribution.model = "sstd", start.pars = list(), fixed.pars = list())
model2<- ugarchfit(data =matrix(res.ar1), spec = spec3, out.sample = 0,
    solver = "gosolnp", solver.control = list(),
    fit.control = list(stationarity = 1, fixed.se = 0, scale = 0))

Error;
Error in .fgarchfit(spec = spec, data = data, out.sample = out.sample,  :
  subscript out of bounds

Kind regards
papa
        [[alternative HTML version deleted]]


_______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.
Reply | Threaded
Open this post in threaded view
|

External regressors

papa



-

Dear All,

Please, I have run the codes below and have errors as below: Please what do we do to avoid/rectify this error. The problem as it appears might be coming from the external regressors.


spec3=ugarchspec(variance.model = list(model = "fGARCH", garchOrder = c(1,
1), submodel ="TGARCH", external.regressors = xxx, variance.targeting = FALSE),
mean.model = list(armaOrder = c(5, 0), include.mean = TRUE,
archm = FALSE, archpow = 1, arfima = FALSE, external.regressors = NULL),
distribution.model = "sstd", start.pars = list(), fixed.pars = list())
model2<- ugarchfit(data =matrix(res.ar1), spec = spec3, out.sample = 0,
    solver = "gosolnp", solver.control = list(),
    fit.control = list(stationarity = 1, fixed.se = 0, scale = 0))

Error;
Error in .fgarchfit(spec = spec, data = data, out.sample = out.sample,  :
  subscript out of bounds

Kind regards
papa
        [[alternative HTML version deleted]]


_______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.
Reply | Threaded
Open this post in threaded view
|

Re: External regressors

Patrick Burns-2
I think you will need to do some
debugging to see where it is going
wrong.  One place among many to get
some R debugging hints is at the
start of Circle 8 of 'The R Inferno':

http://www.burns-stat.com/pages/Tutor/R_inferno.pdf

On 24/11/2011 11:09, Papa Senyo wrote:

>
>
>
> -
>
> Dear All,
>
> Please, I have run the codes below and have errors as below: Please what do we do to avoid/rectify this error. The problem as it appears might be coming from the external regressors.
>
>
> spec3=ugarchspec(variance.model = list(model = "fGARCH", garchOrder = c(1,
> 1), submodel ="TGARCH", external.regressors = xxx, variance.targeting = FALSE),
> mean.model = list(armaOrder = c(5, 0), include.mean = TRUE,
> archm = FALSE, archpow = 1, arfima = FALSE, external.regressors = NULL),
> distribution.model = "sstd", start.pars = list(), fixed.pars = list())
> model2<- ugarchfit(data =matrix(res.ar1), spec = spec3, out.sample = 0,
>      solver = "gosolnp", solver.control = list(),
>      fit.control = list(stationarity = 1, fixed.se = 0, scale = 0))
>
> Error;
> Error in .fgarchfit(spec = spec, data = data, out.sample = out.sample,  :
>    subscript out of bounds
>
> Kind regards
> papa
> [[alternative HTML version deleted]]
>
>
>
>
> _______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.

--
Patrick Burns
[hidden email]
http://www.burns-stat.com
http://www.portfolioprobe.com/blog
twitter: @portfolioprobe

_______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.