[R] non linear models

Christian Endter cendter at misag-usa.com
Sun Sep 30 17:59:11 CEST 2001


Dear Members of the Help List,

Honestly, I feel a little bit stupid - I would like to do something rather
simple: fit a non linear model to existing data, to be more precise I wanted
to start with simple higher order polynomials.

Unfortunately, I do not quite understand the examples in the helpfiles for
the nlm, nls and nlsModel commands.

Could anyone please provide a simple example to get me started (i.e. y = p +
x^2 fitted to x= -1 0 1 y = 2 1 2; a simple parabola p should turn out to be
1). How do I do this and how do I do the same for something like y = a + bx
+ cx^2 + dx^3 ??


Thank you very much,

Christian Endter

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list