The portion of the plot.ppr code that computes the ridge traces for projection pursuit regression.
ppr_funs(obj)
Arguments
obj: A fit of class ppr as produced by the ppr function. ## Returns
ppr_funs returns the evaluated ridge trace values based on output from the ppr function. ## See Also
ppr, plot.ppr
Details
This is just the segment of code in plot.ppr, which calculates the ridge traces.
References
Young, D. S. (2017), Handbook of Regression Methods, CRC Press.
Examples
## Projection pursuit regression on the rock dataset.data(rock)ppr.out <- ppr(log(perm)~ area + peri + shape, data = rock, nterms =2, max.terms =5)obj <- ppr_funs(ppr.out)
obj