Hi, I wonder why my attempt to extend an existing loess fit to a new data set is producing error. I was trying the following:
dat = read.csv(choose.files()) x = dat[,2]; y = dat[,1] x.sort = sort(x) y.loess = loess(y~x, span=0.75) # For testing the above fit with a new dataset: test = read.csv(choose.files()) # test data new_x = test [,1]; new_y = test[,2] new_x.sort = sort(new_x) predicted <- predict(y.loess, newdata=new_x.sort) Am I doing any mistake ? Please correct me. I could see that though the rest of the values of "predicted" looks alright, however the first output of it is an NA !! Many thanks, Chintanu [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.