Skip to content
Prev 247368 / 398503 Next

piecewise regression

dear all,
The package segmented allows to estimate piecewise linear relationships (*connected*
lines, i.e. a gradual change in the slope) with several breakpoints (known or unknown)
within (generalized) linear models.. 
The package also includes some functions for plotting and testing..

Have a look to
library(help=segmented)
?segmented

and references therein (there is a Rnews paper that could be useful..)

vito

PS If I remember correctly strucchange fits "piecewise constant" models, i.e. sudden
changes in the intercept.


====================================
Vito M.R. Muggeo
Dip.to Sc Statist e Matem `Vianelli'
Universit? di Palermo
viale delle Scienze, edificio 13
90128 Palermo - ITALY
tel: 091 23895240
fax: 091 485726/485612
http://dssm.unipa.it/vmuggeo
====================================

On Fri, 14 Jan 2011 14:14:26 -0500, John Sorkin wrote