Hi, I am wondering if I can generate a new equation y = a + b1 * gender + b2 * age where the "a", "b1", "b2" is from the regression coefficient of data1.
Then, I need to use new observations from data2 to put into the new equation to get new y.
I already run the regression results of data1 and store the coefficient into matrix by the following command:
local b1 = m[1,2]
local b2 = m[1,3]
However, I do not know how to generate a new equation by using regression coefficient of data1.
Because I still need to put observations from data2 into this equation, would I need to save the equation into a new dofile?
Does anyone have idea to slove this issue?
Thank you!
Then, I need to use new observations from data2 to put into the new equation to get new y.
I already run the regression results of data1 and store the coefficient into matrix by the following command:
local b1 = m[1,2]
local b2 = m[1,3]
However, I do not know how to generate a new equation by using regression coefficient of data1.
Because I still need to put observations from data2 into this equation, would I need to save the equation into a new dofile?
Does anyone have idea to slove this issue?
Thank you!
Comment