[R] predict function

Douglas Grove dgrove at fhcrc.org
Fri Feb 13 19:41:54 CET 2004


You can't use this anymore.  The function predict() has a method
for loess objects, but there is no longer an available function
called "predict.loess".   So just replace "predict.loess"
with "predict".


On Fri, 13 Feb 2004, Thomas Jagoe wrote:

> I am using R to do a loess normalisation procedure.
> In 1.5.1 I used the following commands to normalise the variable "logratio",
> over a 2d surface (defined by coordinates x and y):
> 
> > array <- read.table("121203B_QCnew.txt", header=T, sep="\t")
> > array$logs555<-log(array$s555)/log(2)
> > array$logs647<-log(array$s647)/log(2)
> > array$logratio<-array$logs555-array$logs647
> > array$logav<-(array$logs555+array$logs647)/2
> > library(modreg)
> > loess2d<-loess(logratio~x+y,data=array)
> > array$logratio2DLoeNorm <-array$logratio - predict.loess(loess2d, array)
> 
> However in 1.8.1 all goes well until the last step when I get an error:
> 
> Error: couldn't find function "predict.loess"
> 
> Can anyone help ?
> 
> Thomas
> 
> ______________________________________________
> R-help at 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
>




More information about the R-help mailing list