Skip to content
Prev 171994 / 398503 Next

formula formatting/grammar for regression

Brigid Mooney <bkmooney <at> gmail.com> writes:
..
If this example is just a placeholder for "more complex than poly",
you should check function nls which works for non-linear functions.

However, if you really want to solve this problem only, doing a 
log on you data and fitting a log of the above function with lm()
is the easiest way out. Results can be a bit different from the
nonlinear case depending on noise, because in one case weight
are log-weighted, in the other linearly.

Dieter