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 regression I could arrive at the equation 
 
y = 9.505799 + (0.191092 * t) - (0.0225 * t^2) + (0.001245 * t^3)
 
However I feel this is wrong as I am trying to use linear regression but here I 
am having polynomial in t.
 
I am not that good in stats as well as in mathmatics.
 
I request you to kindly help me as to how to express the 'y' in polynomial in 
terms of t.
 
Thanking you in advance
 
Julia
 
 
 
 


************************************************

Only a man of Worth sees Worth in other men

************************************************


      
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to