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
OLS with important omitted variable due to collinearityHi Stata Forum, I need theoretical and coding help. (I am a beginner in data analysis, so if some t…
Create a scatterplot using dummy variablesHi. I would like to create a scatterplot using two dummy variables, however, as you may guess, simpl…
logistic reg vs Hypothesis testHi All I looked on a post written way back in 2014 and someone was asking about a hyp. test they we…
subsample comparison analysisHi all, I am currently using the following code to compare the statistical difference for the coeffi…
Clean a dataset with the same IDI have one dataset with a ID variable and three different variables, age, height, and weight). ID…
Subscribe to:
Post Comments (Atom)
0 Response to Transferring coefficients across multiple datasets
Post a Comment