[R] predict.smooth.spline

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri May 23 17:19:46 CEST 2003


iwhite at staffmail.ed.ac.uk wrote:
> I'm using R 1.7.0 on linux. With this version of R the package modreg is
> automatically loaded at start of session. However attempting to use
> predict.smooth.spline() produces Error: couldn't find function
> predict.smooth.spline.
> 
> The function smooth.spline() is OK. What am I missing?


Use the generic, predict().
predict.smooth.spline() is the method for class smooth.spline. Regularly 
you shoudn't call it directly.

Since modreg has a namespace, you don't see the method.
See, e.g., ?getS3method, if you are really going to get the method.

Uwe Ligges


> ======================================
> I.White
> ICAPB, University of Edinburgh
> Ashworth Laboratories, West Mains Road
> Edinburgh EH9 3JT
> Fax: 0131 650 6564  Tel: 0131 650 5490
> E-mail: iwhite at staffmail.ed.ac.uk
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list