Learn R Programming

HoRM (version 0.1.3)

ppr_funs: Ridge Functions for Projection Pursuit Regression

Description

The portion of the plot.ppr code that computes the ridge traces for projection pursuit regression.

Usage

ppr_funs(obj)

Arguments

obj

A fit of class ppr as produced by the ppr function.

Value

ppr_funs returns the evaluated ridge trace values based on output from the ppr function.

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.

See Also

ppr, plot.ppr

Examples

Run this code
# NOT RUN {
## 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

# }

Run the code above in your browser using DataLab