Anil, If you can send me some data (off-list), I can try to see what's tripping you up.
Andy > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of anil > kumar rohilla > Sent: Wednesday, November 09, 2005 3:54 AM > To: [email protected] > Subject: [R] Problem with Running Locfit > > > > 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 > [EMAIL PROTECTED] > > [[alternative HTML version deleted]] > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
