Hello! I'm fairly new to Stata and to Econometrics and I'm wondering if it's possible to obtain the estimated dependent variable of a regression on Stata.
With this I mean, after obtaining the coefficients of the regressors, replace the variables with given numbers and alongside the coefficients get the dependent variable.
Say you have this regression: y = b0 + b1 x1 + b2 x2 and using a database with the variables you compute "reg y x1 x2 " and get the coefficients (e.g. b0 = 1 , b1 = 2 , b2 = 3). Now say you are given the values x1 = 10 and x2 = 20 and you want to get the "y". I know this is trivial but can you compute the y on Stata having all that information? (I mean if there's a command for that)
I'm sorry if this is an easy question but I'm just having Econometrics this semester and I'm totally new to Stata.
Thank you in advance
With this I mean, after obtaining the coefficients of the regressors, replace the variables with given numbers and alongside the coefficients get the dependent variable.
Say you have this regression: y = b0 + b1 x1 + b2 x2 and using a database with the variables you compute "reg y x1 x2 " and get the coefficients (e.g. b0 = 1 , b1 = 2 , b2 = 3). Now say you are given the values x1 = 10 and x2 = 20 and you want to get the "y". I know this is trivial but can you compute the y on Stata having all that information? (I mean if there's a command for that)
I'm sorry if this is an easy question but I'm just having Econometrics this semester and I'm totally new to Stata.
Thank you in advance
Comment