[R] piecewise linear regression

Rolf Turner r.turner at auckland.ac.nz
Sun Mar 8 21:12:49 CET 2009


On 8/03/2009, at 3:54 AM, David Freedman wrote:

>
> Hi - I'd like to construct and plot the percents by year in a small  
> data set
> (d) that has values between 1988 and 2007.  I'd like to have a  
> breakpoint
> (buy no discontinuity) at 1996.  Is there a better way to do this  
> than in
> the code below?

	<snip>

It might be useful to check out the ``segmented'' package.

	cheers,

		Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}




More information about the R-help mailing list