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? =====================================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
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
Dear I. White, The method function predict.smooth.spline isn't exported by the modreg package; you can use it via the generic predict() on an object of class smooth.spline. I hope this helps, John At 03:44 PM 5/23/2003 +0100, 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? > >=====================================>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----------------------------------------------------- John Fox Department of Sociology McMaster University Hamilton, Ontario, Canada L8S 4M4 email: jfox at mcmaster.ca phone: 905-525-9140x23604 web: www.socsci.mcmaster.ca/jfox