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
Graphing multiple variables in a single map using SPMAPDeal all, I am using Stata 15. I have a cross section data-set for year 2015 with crop yields for fo…
Marginsplot with countriesHello all, This is just an example: I do a logit-comman like for instance "logit salary gender" whe…
Functional data analysis for analysis of continuous glucose data (i.e. over days) in StataHello Stata colleagues, I have some continuous glucose data in participants who completed cross-ove…
How to find 2 consecutive values for a dataset with repeated observationsHello, I have the following data below with id, result and results-date. I would like to tag by id …
Inquire R-squared in the logit modelI read these from a classical paper: With a discrete dependent variable, however, the R2 in th…
Subscribe to:
Post Comments (Atom)
0 Response to Using absorb to create dummy variables
Post a Comment