oh yes, and the structchange package.

After a day of experimentation I couldn't figure out how to get the
structchange package to work for my problems.  Although it is probably user
error on my part, the package seems to be specific to time series problems.
Also, I think it needed regularly spaced x's... but maybe that would be a
good thing to look at as part of a two step approach (smoothing first to get
regularly spaced data).

PS:  Actually, I just noticed that there are some other help topics that I
had not read yet which went up last November.
http://r-project.markmail.org/thread/npjhlwwt6oh3sby3


On Fri, Jan 14, 2011 at 10:25 AM, Spencer Graves <
spencer.graves@structuremonitoring.com> wrote:

> Hello:
>
>
>      I just found 58 help pages in 32 contributed packages containing the
> terms "piecewise" and "regression", as follows:
>
>
> library(sos)
> pr <- ???'piecewise regression' # for "piecewise" with "regression"
> summary(pr) # 58 matches in 32 packages
> pr # view the 58 links sorted by package in a web browser
>
> p.r <- ???"{piecewise regression}" # for "piecewise" followed immediate by
> "regression"
> summary(p.r) # 15 matches in 13 packages
> p.4 # to view in a web browser
>
>
>      Beyond this, the "structchange" package supports looking for changes
> that would be, e.g., linear in one segment then jump to a different linear
> regime.  If you want the lines to connect, then you may want splines.
>  Probably the most common spline is cubic, but you can also get linear
> splines.  One of the most general spline packages is "fda" (functional data
> analysis), with multiple companion books by James Ramsay and others.
>  However, there are other spline packages.
>
>
>      If this does not answer your question, "PLEASE do read the posting
> guide http://www.R-project.org/posting-guide.html and provide commented,
> minimal, self-contained, reproducible code", as it says in the signature
> block for each email on this list.
>
>
>      Hope this helps.
>      Spencer Graves
>
>
>
> On 1/14/2011 6:42 AM, Federico Bonofiglio wrote:
>
>> Hello everybody!!!!
>>
>> Quick question, if you'd like to throw a little tip:
>>  does anyone knows a function that runs piecewise regression models with
>> coefficients estimation and inferences ?
>>
>> Thank you
>>
>>        [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

