[R] Polynomial fitting
matti.jokipii at gmail.com
Fri Jul 8 00:46:29 CEST 2011
i'm fairly familiar with R and use it every now and then for math related
I have a simple non polynomial function that i would like to approximate
with a polynomial. I already looked into poly, but was unable to understand
what to do with it. So my problem is this. I can generate virtually any
number of datapoints and would like to find the coeffs a1, a2, ... up to a
given degree for a polynomial a1x^1 + a2x^2 + ... that approximates my
simple function. How can i do this with R?
Your help will be highly appreciated!
View this message in context: http://r.789695.n4.nabble.com/Polynomial-fitting-tp3652816p3652816.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help