[R] Predicting responses using ace

Frank E Harrell Jr f.harrell at vanderbilt.edu
Wed Sep 7 03:43:32 CEST 2005


Luis Pineda wrote:
> Hello everybody,
> 
> I'm a new user of R and I'm working right now with the ACE function
> from the acepack library. I Have a question: Is there a way to predict
> new responses using ACE? What I mean is doing something similar to the
> following code that uses PPR (Projection Pursuit Regression):
> 
> library(MASS)
> x <- runif(20, 0, 1)
> xnew <- runif(2000, 0, 1)
> y <- sin(x)
> a <- ppr(x, y, 2)
> ynew <- predict(ppr, xnew)
> 
> Any help would be much appretiated, Thanks in advance,
> Luis Pineda
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 

Look at the areg.boot function in the Hmisc package, and its associated 
predict method.

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University




More information about the R-help mailing list