Hello together,
I have an urgent question regarding a Stata coding case which I unfortunately could not find in the forum.
I am referring to the data example (extracted with dataex) below.
I am trying to analyse the impact of the below independent variables lProfMar (logProfitMargin) lICturn (logIntangibleCapitalturnover) and lICrat (logIntangibleCapitalratio) on lROA (logROA), which is the dependent variable.
The basic format would be y (lROA) = x1 + x2 + x3
But I have the data for all stock listed American companies over the years 1964 - 2020 with the respective industry codes (gsubind2).
This would mean I am dealing with Panel data, right?
Therefore, I would like to do the following:
1. Run a regression in order to observe first the general impact of the independent variable logICratio (which models the impact of intangible assets on the Return on Assets) across all the industries and years.
2. Secondly, I would like to dive deeper, in order to observe the effect of intangible assets (logICratio) on ROA, for each industry (I have 9 in total, below is only a sample for the SIC code 10) over the decades (e.g. 1964 - 1970, 1971 - 1980, 1981 - 1990, 1991 - 2000, 2001 - 2010, 2011 - 2020).
Meaning, I would like to have for each of the industries 6 regression results, which would enable me to observe the effect over time. For example: In the Industrials industry the effect from 1964 - 1970 is... from 1971 - 1980 is... etc.
For both cases, I would like to include:
- control variables for leverage, (company) size and profit margin
- control for year, industry and year/industry fixed effects
- include standard errors (robust / clustered)
I would also be interested wich tests I would need to include, so that my coefficients I observe with the regressions are valid and significant?
Any help is highly appreciated and please comment if more details are needed.
I am really stuck with coding those regression outputs.
Many thanks in advance.
I have an urgent question regarding a Stata coding case which I unfortunately could not find in the forum.
I am referring to the data example (extracted with dataex) below.
I am trying to analyse the impact of the below independent variables lProfMar (logProfitMargin) lICturn (logIntangibleCapitalturnover) and lICrat (logIntangibleCapitalratio) on lROA (logROA), which is the dependent variable.
The basic format would be y (lROA) = x1 + x2 + x3
But I have the data for all stock listed American companies over the years 1964 - 2020 with the respective industry codes (gsubind2).
This would mean I am dealing with Panel data, right?
Therefore, I would like to do the following:
1. Run a regression in order to observe first the general impact of the independent variable logICratio (which models the impact of intangible assets on the Return on Assets) across all the industries and years.
2. Secondly, I would like to dive deeper, in order to observe the effect of intangible assets (logICratio) on ROA, for each industry (I have 9 in total, below is only a sample for the SIC code 10) over the decades (e.g. 1964 - 1970, 1971 - 1980, 1981 - 1990, 1991 - 2000, 2001 - 2010, 2011 - 2020).
Meaning, I would like to have for each of the industries 6 regression results, which would enable me to observe the effect over time. For example: In the Industrials industry the effect from 1964 - 1970 is... from 1971 - 1980 is... etc.
For both cases, I would like to include:
- control variables for leverage, (company) size and profit margin
- control for year, industry and year/industry fixed effects
- include standard errors (robust / clustered)
I would also be interested wich tests I would need to include, so that my coefficients I observe with the regressions are valid and significant?
Any help is highly appreciated and please comment if more details are needed.
I am really stuck with coding those regression outputs.
Many thanks in advance.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str6 gvkeystr2 double year str4 curcd float(lROA lProfMar lICturn lICrat lFL lROEmv gsubind2) "008265" 1965 "USD" .5196433 1.550513 7.581828 .5976427 6.245504 1.9713898 10 "009867" 1965 "USD" 1.6634578 2.469071 4.4409566 3.963771 5.385618 1.6788192 10 "004351" 1965 "USD" 1.349132 1.7737175 6.297383 2.4883714 5.533849 2.0117655 10 "010001" 1965 "USD" 2.084888 2.1455934 5.174583 3.975052 5.056631 1.9285623 10 "008151" 1965 "USD" 1.7967305 2.63645 4.606376 3.764245 5.403117 1.9227883 10 "001848" 1965 "USD" 1.895812 2.2640448 6.976745 1.8653626 4.849475 2.0608273 10 "011038" 1965 "USD" 1.9138404 2.2680407 6.095886 2.7602546 5.08366 2.1514924 10 "015077" 1965 "USD" 1.2764703 2.2174072 6.25346 2.015943 5.678953 2.115544 10 "004430" 1965 "USD" 1.6241326 2.472753 5.130704 3.2310154 5.449169 2.005333 10 "004073" 1965 "USD" 1.9588038 1.6547745 5.734749 3.77962 5.36468 2.0576415 10 "001678" 1965 "USD" 1.0763617 1.6607312 6.06867 2.5573006 5.844563 1.9356595 10 "002991" 1965 "USD" 2.2398005 2.773686 4.494319 4.182136 4.844166 1.873247 10 "010862" 1965 "USD" 1.3640597 2.3594964 4.6221743 3.5927296 5.521954 1.6343343 10 "006310" 1965 "USD" 1.5878657 2.528244 4.957952 3.3120096 5.612018 2.0345106 10 "003930" 1965 "USD" 1.9455434 2.059591 5.924173 3.1721196 5.113824 2.1200345 10 "007152" 1965 "USD" 2.441854 2.3710392 4.7220263 4.5591288 5.103181 1.9954125 10 "003067" 1965 "USD" 1.816471 2.121225 6.784823 2.1207635 5.107203 2.1831853 10 "003130" 1965 "USD" 1.7599165 3.0512965 3.77133 4.14763 5.965089 1.876967 10 "004503" 1965 "USD" 2.0696442 2.200358 4.941744 4.1378827 5.01432 1.7886598 10 "010482" 1965 "USD" 2.477945 2.824148 4.030914 4.833224 4.870504 1.768618 10 "003067" 1966 "USD" 2.108986 2.3925076 6.337811 2.589007 5.057682 2.3660953 10 "008151" 1966 "USD" 1.7150937 2.617751 5.189945 3.117738 5.419086 2.1169581 10 "001678" 1966 "USD" .9942523 1.7147983 8.644677 -.10765802 5.927368 2.232343 10 "010482" 1966 "USD" 2.412013 2.7747076 4.4532466 4.3943987 4.959701 1.9925215 10 "002410" 1966 "USD" 2.0655658 2.623508 7.248991 1.4034072 5.082231 2.4626174 10 "004351" 1966 "USD" 1.394485 1.8065077 7.757982 1.0403355 5.538279 2.2581105 10 "010001" 1966 "USD" 2.1959083 2.1742039 5.300657 3.931388 4.994503 2.024241 10 "007475" 1966 "USD" 1.8658162 1.9136842 6.203505 2.958968 5.014277 2.016918 10 "006403" 1966 "USD" 1.942149 2.059661 4.5959444 4.4968843 5.291059 1.6014403 10 "005439" 1966 "USD" 2.2788556 1.644978 6.34365 3.5005686 5.126142 2.3565078 10 "004430" 1966 "USD" 1.59205 2.450299 6.249856 2.102235 5.433359 2.2485101 10 "004073" 1966 "USD" 2.1251755 1.7523392 6.071679 3.511498 5.297934 2.3052883 10 "008853" 1966 "USD" 2.488409 1.9708694 5.408367 4.319514 5.011383 2.1393812 10 "011506" 1966 "USD" .8011896 2.430097 5.222341 2.359092 6.911114 2.3836055 10 "009772" 1966 "USD" 2.2473223 2.0658972 4.888558 4.503207 5.122468 1.842396 10 "009653" 1966 "USD" 2.129312 2.2134924 5.066084 4.0600758 5.074555 1.942688 10 "008549" 1966 "USD" 1.7356625 2.1964486 6.376786 2.3727682 5.264188 2.2062593 10 "007152" 1966 "USD" 2.450477 2.474588 4.2366166 4.949613 5.106915 1.7490262 10 "001609" 1966 "USD" 1.894249 2.2456503 6.196913 2.662026 4.916108 2.0157099 10 "006819" 1966 "USD" 3.483641 3.898861 2.1273975 6.667723 4.807897 1.3223288 10 "003130" 1966 "USD" 1.7418855 2.2968254 5.128397 3.527004 5.897388 2.2282472 10 "011038" 1966 "USD" 2.01334 2.3441427 6.49139 2.3881476 5.068228 2.3083 10 "009878" 1966 "USD" 2.830249 3.7882795 2.907467 5.344843 4.731468 1.739467 10 "010503" 1966 "USD" 2.0290208 3.329094 4.356546 3.553721 5.59444 2.3557496 10 "002991" 1966 "USD" 2.1458993 2.699328 5.300189 3.356723 4.895236 2.1113396 10 "007017" 1966 "USD" 2.0665941 2.4041915 5.160166 3.7125766 5.047699 2.0158994 10 "007882" 1966 "USD" 1.8856913 4.101265 1.636634 5.638435 4.7260547 .57834214 10 "008974" 1966 "USD" 1.637855 2.2603848 5.09086 3.4969506 6.2505 2.286101 10 "003930" 1966 "USD" 1.930132 2.0980442 6.318486 2.723943 5.190114 2.2732756 10 "007276" 1966 "USD" 2.4633584 2.947414 4.0511537 4.6751313 5.28034 2.0049617 10 "010156" 1966 "USD" 1.963616 2.2620535 6.026539 2.885364 5.018394 2.1319504 10 "009465" 1966 "USD" 2.0246305 2.1046956 7.012237 2.1180387 4.936938 2.2199886 10 "005012" 1966 "USD" 2.0104487 2.0794415 4.930026 4.2113214 5.358421 1.8745003 10 "009867" 1966 "USD" 1.6171207 2.430122 5.961566 2.4357734 5.378591 2.169327 10 "008068" 1966 "USD" 1.6301076 1.2388914 5.268762 4.3327947 5.828477 1.5562615 10 "002067" 1966 "USD" .6539264 2.1202636 4.1696086 3.574395 5.019521 .6365784 10 "010862" 1966 "USD" 1.4268663 2.3556259 4.4903164 3.791265 5.55829 1.614766 10 "005187" 1966 "USD" 1.8813317 2.353684 4.494313 4.243675 5.583386 1.8112316 10 "004503" 1966 "USD" 2.0637228 2.1914792 5.658694 3.42389 5.038464 2.080169 10 "005667" 1966 "USD" 1.4726313 2.466436 5.8844 2.3321354 5.888969 2.400308 10 "006310" 1966 "USD" 1.7049178 2.591575 5.712029 2.6116536 5.606579 2.390936 10 "007017" 1967 "USD" 2.022548 2.362567 4.736841 4.1334805 5.094829 1.8100348 10 "010862" 1967 "USD" 1.5026466 2.3531435 4.5222497 3.837594 5.556502 1.6646914 10 "007882" 1967 "USD" 2.548498 3.327665 1.636634 6.868293 5.024827 .05845372 10 "008068" 1967 "USD" 1.7658633 1.7077713 4.2272806 5.041152 5.249301 1.0299217 10 "003930" 1967 "USD" 1.931445 2.1512759 6.004253 2.986257 5.23858 2.2476737 10 "007620" 1967 "USD" 1.1141868 1.4257585 7.106747 1.7920214 5.316026 1.5578226 10 "004351" 1967 "USD" 1.391462 1.823098 7.065873 1.712831 5.554659 2.2070367 10 "010482" 1967 "USD" 2.2599998 2.689897 4.408921 4.3715224 5.069791 1.9039836 10 "008974" 1967 "USD" 1.593837 2.1702335 4.922835 3.711109 5.771074 1.9205186 10 "003420" 1967 "USD" 2.061482 3.9446754 2.456654 4.870492 5.17167 1.434817 10 "005439" 1967 "USD" 2.2404225 1.688551 5.530979 4.2312326 5.133477 1.9954216 10 "002991" 1967 "USD" 2.072094 2.548395 5.6606 3.073439 4.90805 2.1182957 10 "004503" 1967 "USD" 2.092912 2.2288344 5.650302 3.424116 5.079903 2.1381311 10 "010565" 1967 "USD" 2.1497772 2.580431 4.7035666 4.0761204 5.272179 2.0522823 10 "003130" 1967 "USD" 1.7614495 2.2301075 4.5857816 4.1559005 5.738585 1.8023727 10 "009465" 1967 "USD" 2.103703 2.1450882 5.006168 4.162787 4.875771 1.7514894 10 "001678" 1967 "USD" 1.3887788 1.900434 4.555962 4.1427236 5.562011 1.3745133 10 "002067" 1967 "USD" -.1823216 1.2039728 1.914266 5.90978 4.929632 -1.6660073 10 "006403" 1967 "USD" 1.6607544 2.0139108 4.20309 4.6540937 5.37381 1.2434888 10 "007938" 1967 "USD" 1.641437 1.8242042 6.667015 2.3605583 5.150666 2.01901 10 "004430" 1967 "USD" 1.543364 2.443657 6.312604 1.997444 5.437443 2.2191405 10 "007276" 1967 "USD" 2.2603252 3.1099246 3.47086 4.889881 5.029291 1.5753503 10 "004073" 1967 "USD" 1.8998277 1.745585 7.10787 2.2567136 5.143138 2.2525432 10 "001537" 1967 "USD" 2.2350664 2.026553 6.000526 3.418327 5.172868 2.3720183 10 "008853" 1967 "USD" 2.3754075 1.954475 5.167621 4.463652 5.062393 1.9692234 10 "011506" 1967 "USD" 1.4458642 2.8143156 4.177734 3.664155 6.574507 2.081156 10 "009653" 1967 "USD" 2.1195774 2.226658 5.049951 4.053309 5.108707 1.9538376 10 "001976" 1967 "USD" 2.444437 2.1441348 5.14889 4.3617525 4.838223 1.9817382 10 "007008" 1967 "USD" 1.1143705 1.849222 5.852809 2.62268 5.870417 1.98212 10 "006310" 1967 "USD" 1.5941818 2.630798 4.789202 3.384522 5.653182 2.0316436 10 "005667" 1967 "USD" 1.704374 2.768089 4.695209 3.451417 5.570193 2.0415192 10 "006819" 1967 "USD" 3.48749 3.8873906 2.2540417 6.556398 4.785724 1.4241613 10 "010156" 1967 "USD" 1.9158365 2.243663 5.295091 3.5874224 5.04796 1.9082427 10 "001788" 1967 "USD" 2.3272777 2.495014 2.601183 6.441422 4.899799 .3788298 10 "010503" 1967 "USD" 1.866553 3.306182 3.443982 4.32673 5.691399 1.7763008 10 "009878" 1967 "USD" 2.7553964 3.634508 2.7834485 5.54778 4.689013 1.5065703 10 "015077" 1967 "USD" 1.350164 2.0528038 9.257823 -.10765802 5.6591 2.28169 10 "005581" 1967 "USD" 1.545457 2.0613651 5.32023 3.374202 5.558843 1.935049 10 "005187" 1967 "USD" 1.9996516 2.477883 3.2769146 5.455194 5.475481 .9849555 10 end

Comment