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
Selecting a subset of ordered variables without typing them manuallyDear all, I am trying to execute a fairly simple operation: Code: egen duration_desk=rowtotal(t_*…
A numerical representation of distance from a regression line?Hello Am a novice Stata user/ statistician. I have created a two way scatter of aggregated travel d…
Interval censored survival using aggregate dataHello, I've got data on vials of drosophila infected with a virus. Then at each time point, I recor…
Creating lagged variables with pooled cross sectional dataI am working with a dataset that contains student grade observations in a variety of subjects, in di…
Changing a binary policy variable shifting it to next year for repeated cross section data I've enlisted policy as a binary variable which I need to take 1 year forward. Like in my data for …
Subscribe to:
Post Comments (Atom)
0 Response to Using absorb to create dummy variables
Post a Comment