Dear all,
I am using Stata 15. I orthogonalized two variables that were highly correlated using the following command:
Then, I run a multiple regression adding other variables to the ones just orthogonalized.
Now I am trying the predict the y using some predefined values for the x's. I have some values for x1 and x2 that I would like to use in order to predict the y but they are not in the orthogonal unit of measurement. How can I convert the values of x1 and x2 in the orthogonal version so that I can use the coefficients obtained from the regression output to predict the y? I tried to google it but I was not able to find any results.
Thank you very much for your help and time.
I am using Stata 15. I orthogonalized two variables that were highly correlated using the following command:
Code:
orthog x1 x2, generate (orthx1 orthx2)
Code:
regress y orthx1 orthx2 x3 x4
Thank you very much for your help and time.
Comment