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
How to do a EM for my mixture modelDear statalist: I want to do a mixture model of two ols whose coffients are constrained to be same.I…
Looping correlation between variablesHi, With following data: Code: * Example generated by -dataex-. To install: ssc install dataex cle…
Interaction with instrumented variableI am measuring the impact of distance to the nearest city on employment outcomes. Y = b0 + b1*X1 + …
Fractional RegressionHello, I have to perform a regression and my dependent variable is a probability. My two independen…
Common Trends QuestionFellows! I'm sorry for what is a probably basic question but I'm really needing help. I'm currentl…
Subscribe to:
Post Comments (Atom)
0 Response to Using absorb to create dummy variables
Post a Comment