[R]:predict.ppr

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jun 8 18:47:09 CEST 2001


On Fri, 8 Jun 2001, Peter Ho wrote:

> Hi all,
>
> I am doing a projection pursuit regression using the ppr() function from
> modreg.
> I would also like to use predict.ppr(). However, I cannot find any

I don't know what to say!  You should be wanting to use the predict()
generic function on your fit.  If you had tried it, it would have worked.

Also, there is an example of using predict on a ppr object in the main
reference ....

> information about it in the help files. There is a link to predict.ppr
> in the index for modreg, but that link is to the help for ppr().

Because methods should not be individually documented unless the differ
from the generic.

> Has predict.ppr() not been implemented?

Why do you think it appear in the function list

> library(modreg)
> ls(2)
 [1] "anova.loess"               "ksmooth"
 [3] "loess"                     "loess.control"
 [5] "loess.smooth"              "plot.ppr"
 [7] "pointwise"                 "ppr"
 [9] "ppr.default"               "ppr.formula"
[11] "predLoess"                 "predict.loess"
[13] "predict.ppr"               "predict.smooth.spline"
[15] "predict.smooth.spline.fit" "print.loess"
[17] "print.ppr"                 "print.smooth.spline"
[19] "print.summary.loess"       "print.summary.ppr"
[21] "scatter.smooth"            "simpleLoess"
[23] "smooth.spline"             "summary.loess"
[25] "summary.ppr"               "supsmu"

?

> If not, does anyone have a suggestion as to how to implement
> predict.ppr()  in R?

I do have a suggestion: learning the difference between generic functions
and methods would help reduce your confusion.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list