Hi economists, I run into an issue of reusing the coefficients that I previously generated for counterfactual analysis.
I have run regression 1 using my current dataset and got the coefficients for var1 and var2. In the second step, I would need to use the coefficients to multiply the new values of var1 and var2, so I can get the sum of it, which is the result of counterfactual analysis. Is there any way that I could reget the coefficients? I ask this because, new values are stored in a new data file, I need to import them once more. However, if I import again, the previous values of coefficients are erased. This thing can easily be done in Python or R, since I can store the coefficient as a vector or list. What can I do with Stata?
Thanks,
Chris
I have run regression 1 using my current dataset and got the coefficients for var1 and var2. In the second step, I would need to use the coefficients to multiply the new values of var1 and var2, so I can get the sum of it, which is the result of counterfactual analysis. Is there any way that I could reget the coefficients? I ask this because, new values are stored in a new data file, I need to import them once more. However, if I import again, the previous values of coefficients are erased. This thing can easily be done in Python or R, since I can store the coefficient as a vector or list. What can I do with Stata?
Thanks,
Chris
Comment