cpr: Control Polygon Reduction

Description Usage Arguments Details Author(s)

Description

Run the Control Polygon Reduction Algorithm.

Usage

1
2
3
4
cpr(x, keep = -1, p = 2, progress = interactive(), ...)

## S3 method for class 'cpr_cpr'
summary(object, ...)

Arguments

x

a cpr_cp object

keep

keep (store) the regression fit for models with keep or fewer internal knots, e.g., keep = 3 will result in the regression fit for models with 0, 1, 2, and 3 internal knots being saved in their respective cpr_cp objects. The default is keep = -1 so that no regression models are retained.

p

defaults to 2L, the L^p norm used in determining the influence weight of each internal knot.

progress

show a progress bar.

...

not currently used

object

a cpr_cpr object

Details

cpr runs the control polygon reduction algorithm.

keep will keep the regression fit as part of the cpr\_cp object for models with up to and including keep fits. For example, if keep = 10 then the resulting cpr\_cpr object will have the regression fit stored in the first keep + 1 (zero internal knots, one internal knot, ..., keep internal knots) cpr\_cp objects in the list. The limit on the number of stored regression fits is to keep memory usage down.

Author(s)

Peter DeWitt dewittpe@gmail.com


cpr documentation built on May 1, 2019, 10:46 p.m.