Learn R Programming

segmented (version 0.2-5)

draw.history: History for the breakpoint estimates

Description

Displays breakpoint iteration values for segmented fits.

Usage

draw.history(obj, term, ...)

Arguments

obj
a segmented fit returned by any segmented method
term
the `segmented' variable whose breakpoint iterations have to be displayed
...
graphic parameters to be passed to matplot

Value

  • None.

Details

For a given term in a segmented fit, draw.history() displays the different breakpoint values obtained during the estimating process, since the starting values up to the final ones.

Examples

Run this code
data(stagnant)
os<-segmented(lm(y~x,data=stagnant),seg.Z=~x,psi=list(x=-.8))
draw.history(os)

Run the code above in your browser using DataLab