Hi all,
I have a panel data set and want to create dummy variables from the variables CEO_compensation, CEO_tenure, CEO_Ownership.
The dummy variables should look like the following:
CEO_Ownership = the percentage of company stock held by the CEO related to industry median, with 1= value above the median and 0= value underneath the median
CEO_Tenure = the number of years the CEO has been in office related to industry median, with 1 = value above the median and 0 = value underneath the median
CEO_Compensation = the total annual compensation that the CEO receives related to the industry median, with 1 = value above the median and 0 = value underneath the median
In order to create the dummy variables I think I need to use the two-digit sic codes of the firms in my panel dataset.
However, I don't really know how I should make the described dummy variables with the two-digit sic codes of the firms in my panel dataset where 1 = value above the industry median and 0 = value underneath the industry median.
Can someone please help me with this?
I'm using Stata 17 on a macOs Catalina.
Below a sample of my panel dataset.
Thanks in advance!
I have a panel data set and want to create dummy variables from the variables CEO_compensation, CEO_tenure, CEO_Ownership.
The dummy variables should look like the following:
CEO_Ownership = the percentage of company stock held by the CEO related to industry median, with 1= value above the median and 0= value underneath the median
CEO_Tenure = the number of years the CEO has been in office related to industry median, with 1 = value above the median and 0 = value underneath the median
CEO_Compensation = the total annual compensation that the CEO receives related to the industry median, with 1 = value above the median and 0 = value underneath the median
In order to create the dummy variables I think I need to use the two-digit sic codes of the firms in my panel dataset.
However, I don't really know how I should make the described dummy variables with the two-digit sic codes of the firms in my panel dataset where 1 = value above the industry median and 0 = value underneath the industry median.
Can someone please help me with this?
I'm using Stata 17 on a macOs Catalina.
Below a sample of my panel dataset.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str28 CONAME float sic2 double(CEO_Tenure CEO_Ownership) float CEO_Compensation "SKYWORKS SOLUTIONS INC" 36 .3 .045 2.1261234 "SKYWORKS SOLUTIONS INC" 36 1.3 .032 6.399716 "SKYWORKS SOLUTIONS INC" 36 2.3 .054 5.002587 "SKYWORKS SOLUTIONS INC" 36 3.3 .045 5.422685 "SKYWORKS SOLUTIONS INC" 36 4.4 .032 9.071857 "ENERPAC TOOL GROUP CORP" 34 .4 .068 1.459483 "ENERPAC TOOL GROUP CORP" 34 1.4 .067 2.3261087 "ENERPAC TOOL GROUP CORP" 34 2.4 .077 2.869191 "ENERPAC TOOL GROUP CORP" 34 3.4 .169 .9573826 "ENERPAC TOOL GROUP CORP" 34 4.4 .238 3.78773 "BRADY CORP" 35 1.9 .04 1.8297285 "BRADY CORP" 35 2.9 .052 2.261716 "BRADY CORP" 35 3.9 .071 4.919281 "BRADY CORP" 35 4.9 .216 4.129367 "BRADY CORP" 35 5.9 .075 2.7901645 "MATERION CORP" 32 10.6 .605 2.2802799 "MATERION CORP" 32 .8 .035 2.465549 "MATERION CORP" 32 1.8 .034 1.669286 "MATERION CORP" 32 2.8 .114 3.028718 "MATERION CORP" 32 3.8 .217 1.4571295 "CTS CORP" 38 2.6 .62 2.7161105 "CTS CORP" 38 3.6 .733 3.189365 "CTS CORP" 38 4.6 .893 3.0202866 "CTS CORP" 38 5.6 1.032 2.0765357 "CTS CORP" 38 6.6 1.119 1.946734 "CABOT CORP" 28 .5 .065 1.3949307 "CABOT CORP" 28 1.5 .075 2.071881 "CABOT CORP" 28 2.5 .111 3.0512674 "CABOT CORP" 28 3.5 .172 2.0461328 "CABOT CORP" 28 4.5 .213 1.771463 "CARPENTER TECHNOLOGY CORP" 33 .9 .01 1.1385132 "CARPENTER TECHNOLOGY CORP" 33 1.9 .017 2.4910305 "CARPENTER TECHNOLOGY CORP" 33 2.9 .087 2.4929926 "CARPENTER TECHNOLOGY CORP" 33 3.9 .332 1.311708 "CARPENTER TECHNOLOGY CORP" 33 4.9 .444 1.472514 "CHURCH & DWIGHT INC" 28 .9 .04 1.466543 "CHURCH & DWIGHT INC" 28 1.9 .057 1.2702277 "CHURCH & DWIGHT INC" 28 2.9 .057 1.2011595 "CHURCH & DWIGHT INC" 28 .6 .06 1.4754583 "CHURCH & DWIGHT INC" 28 1.6 .05 9.527443 "CHURCHILL DOWNS INC" 79 2.3 .811 2.823925 "CHURCHILL DOWNS INC" 79 3.3 1146 3.969882 "CHURCHILL DOWNS INC" 79 4.3 1312 .01162713 "CHURCHILL DOWNS INC" 79 5.3 1375 5.845542 "CHURCHILL DOWNS INC" 79 6.3 1434 6.034752 "COHERENT INC" 38 14 .739 1.9130802 "COHERENT INC" 38 14.9 .507 3.60647 "COHERENT INC" 38 15.9 .659 3.498751 "COHERENT INC" 38 16.9 .77 1.897766 "COHERENT INC" 38 .5 .01 2.639609 "COHU INC" 38 2 .532 2.067652 "COHU INC" 38 3 .599 3.9334884 "COHU INC" 38 4 .476 2.31893 "COHU INC" 38 5 .585 1.7210625 "COHU INC" 38 6 .491 3.060477 "SHUTTERSTOCK INC" 73 4.2 46.594 .0004598519 "SHUTTERSTOCK INC" 73 5.2 46.112 .0007237075 "SHUTTERSTOCK INC" 73 6.2 45.505 .0007305514 "SHUTTERSTOCK INC" 73 7.2 .01 3.0239005 "SHUTTERSTOCK INC" 73 .7 .114 5.847939 "COOPER COS INC (THE)" 38 8.6 .069 1.580538 "COOPER COS INC (THE)" 38 9.6 .072 .486073 "COOPER COS INC (THE)" 38 .4 .075 .58844715 "COOPER COS INC (THE)" 38 1.4 .079 .4936425 "COOPER COS INC (THE)" 38 2.4 .084 .4259431 "CORNING INC" 33 6 .084 2.8053675 "CORNING INC" 33 7 .09 4.896355 "CORNING INC" 33 8 .104 5.518189 "CORNING INC" 33 9 .113 2.978277 "CORNING INC" 33 4.3 .098 4.1963925 "CRANE CO" 34 2.9 .206 2.412608 "CRANE CO" 34 3.9 .219 2.8341014 "CRANE CO" 34 4.9 .366 3.057879 "CRANE CO" 34 5.9 .39 2.2673922 "CRANE CO" 34 6.9 .398 2.391373 "CURTISS-WRIGHT CORP" 36 1.9 .321 3.3210266 "CURTISS-WRIGHT CORP" 36 2.9 .244 2.668044 "CURTISS-WRIGHT CORP" 36 3.9 .238 4.3744555 "CURTISS-WRIGHT CORP" 36 4.9 .181 3.430234 "CURTISS-WRIGHT CORP" 36 5.9 .193 3.033546 "DANA INC" 37 1.3 .039 6.270573 "DANA INC" 37 2.3 .058 6.541174 "DANA INC" 37 3.3 .253 4.860137 "DANA INC" 37 .6 .351 4.736923 "DANA INC" 37 1 .418 4.886946 "DIEBOLD NIXDORF INC" 35 .3 .275 2.1920264 "DIEBOLD NIXDORF INC" 35 1 .272 2.5127764 "DIEBOLD NIXDORF INC" 35 .8 .075 2.2765641 "DIEBOLD NIXDORF INC" 35 1.8 .218 1.6850197 "DIEBOLD NIXDORF INC" 35 2.8 .207 1.5061302 "DONALDSON CO INC" 35 1.3 .058 .6653286 "DONALDSON CO INC" 35 2.3 .063 2.2807095 "DONALDSON CO INC" 35 .7 .089 2.433109 "DONALDSON CO INC" 35 1.7 .139 2.872298 "DONALDSON CO INC" 35 2.7 .147 1.7731953 "EMERSON ELECTRIC CO" 38 7.1 .356 1.1946176 "EMERSON ELECTRIC CO" 38 8.1 .384 7.995649 "EMERSON ELECTRIC CO" 38 9.1 .394 6.61639 "EMERSON ELECTRIC CO" 38 10.1 .42 6.365517 "EMERSON ELECTRIC CO" 38 11.1 .451 6.681705 end
Thanks in advance!
Comment