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
Short Panel data + fixed effect model, questions about time dummy and unit rootHi dear Statalist, I’m exploring how the bank specific characteristics and macro variables (liquidit…
Very different p-values using testnl vs test after marginsI'm working with survey data on medication use among people with a disease. The question is whether …
mlogit with pooled data (not mlogit for panel model)I have panel data for 40 individuals and their characteristics for 10 years. The DV is an outcome v…
Creating a Sample from two categorical variables. Looking for replication.Hello Statalist, This is my second post, sorry in advance if I broke a rule. I have a data that co…
How to create a date variable from month? String VariableHi I have a query my variable is in the following format: 1901m12, 1902m1 and so on. I want to separ…
Subscribe to:
Post Comments (Atom)
0 Response to Using absorb to create dummy variables
Post a Comment