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
Unexpected error with -bayes:mixed-The following Code: sysuse bplong bayes: mixed bp i.when || patient: , noconstant residuals(exchang…
R-squared and -didregress-Good evening all, Is there a way to have -didregress- show a value for r-squared- as you would see …
Fix a coefficient to the value it had in previous mlogitHi everyone, this may be a very simple problem and I am just not getting it, but here's what I am t…
Panel Var and Fan ChartsHi all, Its bit urgent please I'm using panel var in my project, i need little help could anyone …
How to change the format of numbers stored in a local macro?Dear Statalist, I am trying to format the number stored in a local macro using the string(n, s) fun…
Subscribe to:
Post Comments (Atom)
0 Response to Transferring coefficients across multiple datasets
Post a Comment