Dear all,
i would like to build an industry classification based on Hoberg and Phillips TNIC (Text-based Network Industry Classifications)
The available data from their website looks like this:
Year: range from 1997 to 2015
gvkey: main firm identifier in compustat (for firm x and y)
score: Similarity measure of both companies
year gvkey1 gvkey2 score
1996 1004 1210 0.0693
1996 1004 1849 0.0061
1996 1004 1988 0.0056
1996 1004 2033 0.0595
1996 1004 2049 0.0232
1996 1004 2285 0.038
1996 1004 2519 0.0082
1996 1004 2598 0.0168
1996 1004 2771 0.0022
1996 1004 3178 0.0068
1996 1004 3216 0.0354
1996 1004 3416 0.0099
1996 1004 4091 0.0226
1996 1004 4223 0.0185
1996 1004 4279 0.0077
1996 1004 4460 0.0017
1996 1004 5567 0.1097
1996 1004 6500 0.0046
1996 1004 7085 0.031
The similarity measure indicates how similar the two companies are. I would now like to classify the companies in annual industries based on a similarity threshold. A company may only be listed in one industry by year.
Does anyone know how to do it in STATA?
i would like to build an industry classification based on Hoberg and Phillips TNIC (Text-based Network Industry Classifications)
The available data from their website looks like this:
Year: range from 1997 to 2015
gvkey: main firm identifier in compustat (for firm x and y)
score: Similarity measure of both companies
year gvkey1 gvkey2 score
1996 1004 1210 0.0693
1996 1004 1849 0.0061
1996 1004 1988 0.0056
1996 1004 2033 0.0595
1996 1004 2049 0.0232
1996 1004 2285 0.038
1996 1004 2519 0.0082
1996 1004 2598 0.0168
1996 1004 2771 0.0022
1996 1004 3178 0.0068
1996 1004 3216 0.0354
1996 1004 3416 0.0099
1996 1004 4091 0.0226
1996 1004 4223 0.0185
1996 1004 4279 0.0077
1996 1004 4460 0.0017
1996 1004 5567 0.1097
1996 1004 6500 0.0046
1996 1004 7085 0.031
The similarity measure indicates how similar the two companies are. I would now like to classify the companies in annual industries based on a similarity threshold. A company may only be listed in one industry by year.
Does anyone know how to do it in STATA?
Comment