Given a regression model, segmented `updates' it by adding one or more segmented (i.e., piece-wise linear) relationships. Several variables with multiple breakpoints are allowed. The estimation method is discussed in Muggeo (2003,
*
*
seg.Z' included reserved words, e.g.
seg.Z~dist'; thanks to Thom
White for finding the error).beta0' and
dispersion'.