Note that the “x^2” term is inside I() Compare the coefficients to the fit equation from Excel
Isolating the coefficients Recall we are fitting to the form y(t) = y 0 + v 0 t + a t 2 /2 So for us a (the acceleration) is twice the value from the fit
Displaying the equation
Displaying the curve
Another approach
Raw=TRUE • Without the raw=TRUE option in poly, the R program will not use simple linear and quadratic powers of the variable, but will introduce “orthogonal” combinations of the variables. • This makes for better statistics – to have “independent” variables, but it makes the results harder to read and interpret.