Hi,
I am trying to create two variables that computes the variance of log of output per worker (ly) over time by industry (isic) and type of industry (tech_intensity) but clearly the command is not just sd^2 by isic or tech_intensity. In addition, I am also trying to compute the variance of industries (isic) within the same group (tech_intensities). That is, how ly is dispersed among industries within the same group. Any hint? Thank you very much!
I am trying to create two variables that computes the variance of log of output per worker (ly) over time by industry (isic) and type of industry (tech_intensity) but clearly the command is not just sd^2 by isic or tech_intensity. In addition, I am also trying to compute the variance of industries (isic) within the same group (tech_intensities). That is, how ly is dispersed among industries within the same group. Any hint? Thank you very much!
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int country str2 isic float tech_intensity int year float ly 392 "20" 1 1963 7.26083 710 "16" 1 1963 8.802372 356 "17" 1 1963 6.480821 356 "18" 1 1963 6.298085 566 "15" 1 1963 8.434374 288 "17" 1 1963 7.216023 368 "18" 1 1963 7.340207 356 "21" 1 1963 7.079779 792 "17" 1 1963 7.442109 100 "18" 1 1963 . 364 "19" 1 1963 . 616 "21" 1 1963 7.429392 600 "36" 1 1963 . 40 "16" 1 1963 10.65649 266 "17" 1 1963 . 278 "22" 1 1963 . 410 "22" 1 1963 7.1299 620 "20" 1 1963 7.622666 760 "18" 1 1963 6.31662 152 "16" 1 1963 10.35778 266 "36" 1 1963 . 56 "15" 1 1963 8.705056 200 "19" 1 1963 . 620 "21" 1 1963 8.078789 250 "18" 1 1963 7.561381 214 "15" 1 1963 7.09509 600 "18" 1 1963 . 222 "17" 1 1963 8.1795435 578 "36" 1 1963 8.216323 710 "20" 1 1963 7.067297 608 "22" 1 1963 7.425481 100 "20" 1 1963 . 840 "19" 1 1963 . 222 "19" 1 1963 . 508 "18" 1 1963 . 800 "22" 1 1963 6.906117 710 "18" 1 1963 7.492924 894 "17" 1 1963 7.218875 862 "15" 1 1963 8.94442 364 "17" 1 1963 7.422935 792 "19" 1 1963 . 826 "18" 1 1963 7.72704 40 "22" 1 1963 7.940096 364 "21" 1 1963 7.233703 716 "21" 1 1963 . 100 "16" 1 1963 . 124 "21" 1 1963 9.2917595 528 "20" 1 1963 8.188397 788 "20" 1 1963 7.1653 620 "36" 1 1963 6.033399 528 "22" 1 1963 8.06982 724 "19" 1 1963 . 368 "36" 1 1963 6.826024 368 "22" 1 1963 7.411281 196 "36" 1 1963 7.786526 702 "36" 1 1963 7.383864 528 "16" 1 1963 7.836859 246 "21" 1 1963 8.564982 372 "16" 1 1963 8.608574 152 "20" 1 1963 7.815402 222 "16" 1 1963 9.658947 528 "15" 1 1963 8.183544 392 "18" 1 1963 7.212449 372 "17" 1 1963 7.730071 188 "19" 1 1963 . 788 "15" 1 1963 7.907479 716 "18" 1 1963 . 32 "18" 1 1963 . 356 "36" 1 1963 6.337507 642 "20" 1 1963 . 388 "20" 1 1963 8.442659 214 "21" 1 1963 8.358867 356 "20" 1 1963 6.141352 642 "19" 1 1963 . 620 "15" 1 1963 7.801026 208 "18" 1 1963 8.031172 752 "18" 1 1963 8.175014 826 "15" 1 1963 8.442614 598 "19" 1 1963 . 400 "16" 1 1963 7.82051 710 "22" 1 1963 8.219606 214 "19" 1 1963 . 410 "18" 1 1963 6.633695 400 "18" 1 1963 6.989285 630 "15" 1 1963 . 376 "15" 1 1963 8.251745 586 "15" 1 1963 7.492325 196 "18" 1 1963 7.739839 170 "21" 1 1963 8.523235 716 "15" 1 1963 . 124 "22" 1 1963 8.976151 340 "18" 1 1963 6.823594 280 "36" 1 1963 8.478176 840 "17" 1 1963 8.879159 40 "17" 1 1963 7.733911 826 "17" 1 1963 7.907815 792 "21" 1 1963 8.089255 508 "36" 1 1963 . 792 "36" 1 1963 7.732408 840 "15" 1 1963 9.494059 end
Comment