Hello
I have firm-pair-quarter panel data where firm-pairs are not repeated or duplicated (i.e., if pair A-B-2010Q1 is in the sample, pair B-A 2021Q1 will not be in the sample).
I have the identifying information for each observation in a separate column, call it Firm I and Firm J.
I want to use the absorb() function to identify all of the pairs where firm XYZ is either in the Firm I column OR the Firm J column.
As best I can tell, the input into the absorb() function relies only on a single categorical variable. Is there some way for me to do this in stata without having to create unique indicators for each firm? I have over 20 million observations so I don't know if my stata would be able to handle me making the indicators by themselves.
Thanks for any thoughts in advance!
Related Posts with Using absorb to create dummy variables
Strange macro behaviourHi guys, I am trying, with the following loop to drop some of my observations, specifically the one…
Making tables from dataHi, I've district-level migration data of India. Say- State no district no migration type 1 (p…
F-keys in profile.doDear all, I am generating my file profile.do: Code: /*==========================================…
Missing values in StataI am creating my own data set for my thesis, and have run into a problem with missing values. I am c…
Interpretation of AMEs: CIs overlapping each other but not zero, can I conclude that there is an interaction?Hi all, I'm fitting a simple OLS-model including an interaction term. To interpret the interaction …
Subscribe to:
Post Comments (Atom)
0 Response to Using absorb to create dummy variables
Post a Comment