Displaying 1 result from an estimated 1 matches for "yy0".
Did you mean:
yy
2004 May 30
1
What's wrong with this simple code???
...n not figure this out, please have a look and help me out.
thank you!
Note: this is in SPLUS, not R.
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"...