[R] best way to fit a model
Achim Zeileis
Achim.Zeileis at wu-wien.ac.at
Tue Sep 13 20:04:19 CEST 2005
On Tue, 13 Sep 2005 13:24:02 -0300 Ronaldo Reis-Jr. wrote:
> Em Sex 09 Set 2005 15:25, Achim Zeileis escreveu:
> > On Fri, 9 Sep 2005 14:55:04 -0300 Ronaldo Reis-Jr. wrote:
> > > Hi,
> > >
> > > I have some data that have this behaviour:
> > > |*******
> > > | *
> > > | *
> > > | *
> > > | *
> > > |----------------
> > >
> > > What is the best and simpler way to fit this in R?
> >
> > If the changepoint is known, then this is straightforward using lm:
> >
>
> I try this. But my doubt now is:
>
> How to justify this kind of analysis? Why dont use any linearized or
> non linear regression to fit this? Something like a log function (I
> try but is not a good function).
The motivation usually comes from subject-matter knowledge. For example,
such changepoint models are accepted by practitioners as good proxies
for certain biological processes. If you think that the data-generating
process might contain a structural change, why not model it as such?
Z
> Thanks
> Ronaldo
> --
> Your reasoning is excellent -- it's only your basic assumptions that
> are wrong.
> --
> |> // | \\ [***********************************]
> | ( õ õ ) [Ronaldo Reis Júnior ]
> |> V [UFV/DBA-Entomologia ]
> | / \ [36570-000 Viçosa - MG ]
> |> /(.''`.)\ [Fone: 31-3899-4007 ]
> | /(: :' :)\ [chrysopa at insecta.ufv.br ]
> |>/ (`. `'` ) \[ICQ#: 5692561 | LinuxUser#: 205366 ]
> | ( `- ) [***********************************]
> |>> _/ \_Powered by GNU/Debian Woody/Sarge
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list