[R] problem with Running Locfit

From: anil kumar rohilla <anil_rohilla_at_rediffmail.com>
Date: Wed 09 Nov 2005 - 18:55:16 EST

  

Dear R users,

   i am using locfit package developed by loader in R software, my problem is that as i am doing independont forecast using locfit object , i am able to do independont forecast for more than one years simultaniously. But when i am doing one year forecast(single) this code is giving following error... "Warning message:
'newdata' had 1 rows but variable(s) found have 24 rows "

here is the code i am using for locfit.........

xt<-read.table("x.dat",header=FALSE)
yt<-read.table("y.dat",header=FALSE)
tst<-read.table("test.dat",header=FALSE)

fitt<-locfit.raw(sapply(xt,"[",1:24),sapply(yt,"[",1:24),

deg=1,maxk=700)
fr<-fitted(fitt)
result<-fr

hltt<-predict(fitt,newdata=tst)
hltt<-predict.locfit(fitt,newdata=sapply(tst,"[",1:1)) res_tt<-hltt

cat(file="prd_model.dat",result, sep="\n") cat(file="prd_independent.dat",res_tt,sep="\n")

Any help is much apreciated...
thanks in advance

ANIL KUMAR( METEOROLOGIST GR -II)
LRF SECTION
NATIONAL CLIMATE CENTER
ADGM(RESEARCH)

INDIA METEOROLOGICAL DEPARTMENT
SHIVIJI NAGAR
PUNE-411005 INDIA
MOBILE +919422023277
anilkumar@imdpune.gov.in

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Nov 09 19:04:07 2005

This archive was generated by hypermail 2.1.8 : Wed 09 Nov 2005 - 20:14:49 EST