I need to export a final multivariate polynomial regression equation from R to another application. I do not understand one portion of the regression output. The regression uses the polym() function. The summary table is posted below.
ploy_lm <- lm(df$SV ~ polym(df$Indy, df$HI, degree = 3, raw = TRUE)
summary(ploy_lm)
The table below says polym input for "df$Indy, df$HI, degree = 3, raw = TRUE".
| Estimate | |
|---|---|
| Intercept | -8.903 |
| (polym input)1.o | 1.189E0 |
| (polym input)2.o | -1.651E-2 |
| (polym input)1.1 | 8.247E-4 |
How do I translate the results into a final regression equation? Does the value at the end of the first column (e.g. from the last row: "polym(df$Indy, df$WM_HI, degree = 3, raw = TRUE)1.1") signify the exponent value?
Here is a simple example with a predefined function:
The first digit after the ")" is the power of the first term and the number after the "." is the power of the second term.