Suppose I have the following code to fit a hyperbolic parabola:
# attach(mtcars)
hp_fit <- lm(mpg ~ poly(wt, disp, degree = 2), data = mtcars)
Where wt
is the x variable, disp
is the y variable, and mpg
is the z variable. (summary(hp_fit))$coefficients
outputs the following:
>(summary(hp_fit))$coefficients
Estimate Std. Error t value Pr(>|t|)
(Intercept) 22.866173 3.389734 6.7457122 3.700396e-07
poly(wt, disp, degree = 2)1.0 -13.620499 8.033068 -1.6955539 1.019151e-01
poly(wt, disp, degree = 2)2.0 15.331818 17.210260 0.8908534 3.811778e-01
poly(wt, disp, degree = 2)0.1 -9.865903 5.870741 -1.6805208 1.048332e-01
poly(wt, disp, degree = 2)1.1 -100.022013 121.159039 -0.8255431 4.165742e-01
poly(wt, disp, degree = 2)0.2 14.719928 9.874970 1.4906301 1.480918e-01
I do not understand how to interpret the varying numbers to the right of poly()
under the (Intercept)
column. What is the significance of these numbers and how would I construct an equation for the hyperbolic paraboloid fit from this summary?