Hi Everyone,
I have the following problem:
I have dataset A and B.
I am running several (like 5 variations) of a first stage regressions on Dataset A and then I plan on using the predict command to create a variable and use that variable in several second stage regressions on Dataset B. If I had only one variation of the first stage - I could simply do:
- run regression on dataset A
- clear _all then load dataset B
- predict, f1
- include f1 in the new regression run on dataset B
I can do this for each variation of the first stage iteratively. However, I am wondering if there are some more efficient methods out there where I can run all the first stage regressions on dataset A, all at once and perhaps save those estimates and then use them to make predictions on dataset B. This way I have to load dataset A and B for once regardless of the number of variations I am experimenting with.
Thanks for reading.
- Ougni
Related Posts with Transferring coefficients across multiple datasets
Stata Regression YearsHi all, I looked at a sample of companies and their balance sheets from 2014 to 2017. To do this, I…
Estimating bias in Endogenous Poisson modelsHi all, the title quite speaks for itself. I am trying to recover how the bias intervenes in the es…
How to transform the Datastream Format to Panel Data? Could you help me please?I hope I could transform my data to the format below. There should be four columns and for different…
Interpreting Probit results when convergence is not achievedHello, We are running an IV-probit model with interactions. Unfortunately, in some cases, our model…
plase helpIf there is anyone who knows how to do the things listed in the next document I'm really happy to he…
Subscribe to:
Post Comments (Atom)
0 Response to Transferring coefficients across multiple datasets
Post a Comment