Learn R Programming

Kpart (version 1.1)

Kpart.plot: A Kpart plot

Description

Displays plot of fitted values of lm.Kpart.

Usage

Kpart.plot(data, K)

Arguments

data
Two column matrix, the first column is respone, the second column is predictor in which to base knots.
K
A positive interger that will partition the data K times.

Value

Plot.

Details

Plot of fitted values, as well as vertical lines representing the values of knots selected.

References

Tomas Fitzgerald

Examples

Run this code
# example()

Run the code above in your browser using DataLab