Displaying 1 result from an estimated 1 matches for "excelpr".
Did you mean:
excelr
2009 Nov 11
1
Polynomial fitting
Dear R helpers
Suppose I have a following data
y <- c(9.21, 9.51, 9.73, 9.88, 10.12. 10.21)
t <- c(0, 0.25, 1, 3, 6, 12)
I want to find out the polynomial which fits y in terms of t i.e. y = f(t) some function of t.
e.g. y = bo + b1*t + (b2 * t^2) + (b3 * t^3) + ...... and so on.
In Excel I have defined y as independent variable, then defined t, t^2 and t^3 and using