Re: [R] What's wrong with this simple code???

About this list Date view Thread view Subject view Author view Attachment view

From: Uwe Ligges (ligges@statistik.uni-dortmund.de)
Date: Sun 30 May 2004 - 19:51:31 EST


Message-id: <40B9AEA3.8080308@statistik.uni-dortmund.de>

Yong Wang wrote:

> Hi, all
> I can not figure this out, please have a look and help me out.
> thank you!
>
> Note: this is in SPLUS, not R.

Note 1: This mailing list is about R, not S-PLUS.

Note 2: Your code is not reproducible - we don't have the data.

I'd suggest that you repost your question including an easily
reproducible example on the S-News mailing list.

Uwe Ligges

> I have following code
> ***********************************
> modfit<-function(yir,yew, ft) {
>
> n<-length(yew)
> yew<-yew[1:(n-1)]
>
> yy<-yir-ft
> xx<-yew-ft
>
> n<-length(xx)
> xx0<-xx[2:n]
> yy0 <-yy [2:n]
>
> xx1<-xx[1:(n-1)]
>
> fit <- garch(yy0~xx0 + xx1+var.in.mean, ~garch(1,1),cond.dist='ged')
> summary(fit)
> }
>
> fs1hca<-modfit(s1hca.r, s1hca.ew, zfr)
>
> **************error message is ***************
>
> Problem in garch(yy0 ~ xx0 + xx1 + var.in.mean, ~ ..: Object "xx0" not
> found Use traceback() to see the call stack
>
> It is really weird, I tried step by step, the code works,
> but what's the problem with xx0,I can't figure it out.
>
> thank you for any suggestion.
>
> best regards
> yong
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:14 EST