Linked Questions

0 votes
0 answers

If first degree polynomial models are linear models, why do results of linear model differ from that of poly(x,1)? [duplicate]

As the title reads, the results from the linear and first degree polynomial model are different and I am not sure why. Any ideas why this might be? ...
Yaaman's user avatar
  • 1
0 votes
0 answers

R poly what family of polynomials? [duplicate]

The R poly function documentation says that it gives orthogonal polynomials, but it's not clear what orthogonal polynomials it gives. Are they Legendre? Are they ...
Him's user avatar
  • 2,217
2 votes
2 answers

How can I calculate the variance of interaction term from an equivalent model without interaction?

Lets say that you have access to a model that estimates the mean of four independent groups like m2 below, but these groups have been formed from two factors (a & b) and you want to instead ...
Poker's user avatar
  • 23
4 votes
0 answers

R - Interpretation of coefficients and written form of fitted model in lm() linear regression when using poly()

I've tried reading several resources on poly(), I'm not able to see an answer to my question. My question pertains how I might present my fitted linear model in a way that the coefficients are ...
Julian Drago's user avatar
3 votes
2 answers

Theoretical reason for multiple linear regression predictions being the same when adding and subtracting predictors

Say I have two variables $x_1$ and $x_2$, now I build a linear regression model as below $$\hat{Y} = n_1 x_1 + n_2 x_2.$$ Then I build another model as below $$\hat{Z} = m_1 (x_1 + x_2) + m_2 (x_1 - ...
Bratt Swan's user avatar
0 votes
0 answers

Calculating predicted value from polynomial regression by hand

I have the following output from from R. I know we can calculate predicted values using the predict() function. How can we calculate the predicted value by hand if X=2 or 3? I'm using the below ...
JPGS's user avatar
  • 1
0 votes
0 answers

How to manually compute response variable using regression with poly [duplicate]

I believe I can manually compute response values from coefficients obtained using 'raw' polynomial predictor variables. Example R code is ...
PM.'s user avatar
  • 627
0 votes
0 answers

Difference between contr.poly e poly in regression and interpretation

I am confusing regarding the differences between poly and contr.poly in regression. Both should generate the orthonormal polynomial transformation of a vector. But poly is influenced by the length of ...
Bakaburg's user avatar
  • 2,733
0 votes
0 answers

How to replicate the predict function from R in Excel given I have access to "summary" output from R

I have run a 3rd order polynomial regression in R and have run the "summary" function, but I need to be able to replicate the "predict" function in Excel. I have my current working code below. Thank ...
RegressionMan's user avatar
0 votes
0 answers

How to recover the formula of the polynomial regression model?

I am trying to recover the formula of my regression model. I build the polynomial regression model using ...
Jin's user avatar
  • 1