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
Axis inteserction in scheme plotplainDear All, I am making a twoway graph using the scheme plotplain. The user written scheme by Daniel B…
Data Wrangling QuestionHello Statalist, I've got a vexing data wrangling question that I need help figuring our. I've got …
Create table of variable names and labelsHi, This seems very simple, but I cannot find anything on a straightforward way of doing it. I have…
Help with combining observations of a variableHello all, I have a dataset that includes a admissions information for students to a school by the …
interrupted time series analysis with non-equivalent dependent variablesHello, I'm familiar with Stata's arima and itsa commands for estimating interrupted time series ana…
Subscribe to:
Post Comments (Atom)
0 Response to Transferring coefficients across multiple datasets
Post a Comment