Hi dear Profs and colleagues,
I am going to estimate TFP for each industry separately. Data:
------------------ copy up to and including the previous line ------------------
Listed 100 out of 274919 observations
When I run this code:
Is there anyone who could assist me in seeing what the problem is? If the code is missing or the issue is in dataset. Thank you so much.
Cheers,
Paris
I am going to estimate TFP for each industry separately. Data:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double(year NPC_FIC) float(CAE_2 log_y log_k lnmaterials log_lab) 2010 500008310 56 11.074808 10.925884 11.266246 0 2011 500008310 56 10.80645 10.660196 . 0 2013 500008310 56 10.290517 10.838875 9.275587 0 2014 500008310 56 10.672716 10.702727 10.825533 0 2015 500008310 56 10.649037 10.442463 9.741929 0 2010 500027353 56 11.77071 11.009853 11.910075 1.0986123 2011 500027353 56 11.717815 11.195581 . .6931472 2012 500027353 56 11.493213 11.097713 . 0 2013 500027353 56 11.29796 11.284694 10.23167 0 2014 500027353 56 11.522272 10.902225 11.623674 0 2015 500027353 56 11.632777 11.040006 10.62239 .6931472 2016 500027353 56 11.759942 10.86754 10.91029 .6931472 2017 500027353 56 11.96535 10.957486 11.245886 1.0986123 2018 500027353 56 11.902343 11.069276 11.001667 1.0986123 2010 500049799 10 11.863244 12.526605 10.456385 1.0986123 2011 500049799 10 11.54864 12.515446 . .6931472 2012 500049799 10 11.232775 12.74003 . .6931472 2013 500049799 10 11.275455 12.664285 8.756804 1.0986123 2014 500049799 10 11.269477 12.699335 9.918517 1.0986123 2015 500049799 10 11.59814 12.360273 9.04157 1.609438 2016 500049799 10 11.716307 12.39719 9.3204975 1.609438 2017 500049799 10 11.962924 12.371113 9.697294 1.7917595 2018 500049799 10 10.717458 12.705137 8.676226 0 2010 500050215 56 10.83058 9.65509 11.073888 .6931472 2011 500050215 56 10.510695 9.780246 . .6931472 2010 500135017 55 12.565253 11.753516 12.662325 2.0794415 2011 500135017 55 12.450398 11.647133 . 2.0794415 2012 500135017 55 12.139992 10.778436 . 1.94591 2013 500135017 55 11.88397 10.78808 10.765712 1.7917595 2014 500135017 55 11.872953 10.697565 11.922363 1.7917595 2015 500135017 55 11.999178 10.758796 10.988786 1.7917595 2016 500135017 55 12.162277 10.58633 11.312615 1.609438 2017 500135017 55 12.356546 10.6763 11.637093 1.609438 2018 500135017 55 12.482655 11.849655 11.539842 1.7917595 2019 500135017 55 12.609866 11.96744 11.70076 1.3862944 2020 500135017 55 12.185753 11.54637 11.185262 1.3862944 2010 500139105 47 10.12691 10.864503 9.764585 .6931472 2011 500139105 47 9.977667 10.778602 . 0 2012 500139105 47 9.615405 10.541545 . 0 2013 500139105 47 9.822657 10.795793 8.411635 0 2014 500139105 47 9.643291 10.62823 9.400371 0 2010 500205042 56 11.847976 10.72867 11.987343 1.609438 2011 500205042 56 12.205242 10.91438 . 2.0794415 2012 500205042 56 11.871956 10.778436 . 1.609438 2013 500205042 56 11.902898 10.78808 10.784653 1.7917595 2014 500205042 56 11.938154 10.697565 11.98757 2.0794415 2015 500205042 56 11.978162 10.758796 10.967772 1.7917595 2016 500205042 56 12.132475 10.58633 11.28281 1.7917595 2017 500205042 56 12.250051 10.6763 11.530596 1.7917595 2018 500205042 56 12.239155 10.78808 11.338487 1.94591 2010 500206942 47 11.012033 11.638924 10.424974 1.0986123 2011 500206942 47 10.919623 11.564075 . 1.0986123 2012 500206942 47 10.733 11.29941 . .6931472 2013 500206942 47 10.49709 11.122058 8.72287 .6931472 2014 500206942 47 10.288852 10.953977 9.682573 0 2015 500206942 47 10.227562 10.936975 8.714582 0 2016 500206942 47 10.10696 10.843084 8.754652 0 2017 500206942 47 10.057281 10.79927 8.835141 0 2018 500206942 47 10.098272 10.829134 8.694993 0 2019 500206942 47 9.981421 10.719472 8.611775 0 2010 500251226 47 10.689692 11.820528 10.17441 .6931472 2011 500251226 47 10.902813 11.839066 . .6931472 2012 500251226 47 11.24379 12.00739 . .6931472 2013 500251226 47 10.814685 11.846386 9.040474 1.0986123 2014 500251226 47 10.872655 11.833994 10.266294 .6931472 2015 500251226 47 10.84681 11.82692 9.180595 .6931472 2016 500251226 47 10.85354 11.853354 9.347876 .6931472 2017 500251226 47 10.799657 11.80381 9.42417 .6931472 2018 500251226 47 10.739348 11.781363 9.182611 .6931472 2019 500251226 47 10.96599 11.930787 9.442993 .6931472 2020 500251226 47 10.903605 11.90687 9.175542 .6931472 2010 500265754 47 10.349134 9.489713 9.273022 0 2011 500265754 47 10.472063 9.634824 . 0 2012 500265754 47 10.423263 9.660077 . 0 2013 500265754 47 8.76061 10.03732 7.349588 0 2014 500265754 47 9.328923 10.383967 9.086072 0 2013 500301113 56 11.241786 10.436113 10.17548 .6931472 2014 500301113 56 11.054788 10.05363 11.15619 .6931472 2016 500301113 56 10.830856 9.75464 10.084136 1.0986123 2017 500301113 56 10.905552 10.161264 10.238066 .6931472 2018 500301113 56 10.817115 9.627734 10.018467 0 2019 500301113 56 10.736115 9.800679 9.971493 0 2010 500321035 25 12.073917 11.276228 10.667027 1.0986123 2011 500321035 25 11.904663 11.198406 . 1.0986123 2012 500321035 25 12.061388 11.258717 . 1.0986123 2013 500321035 25 11.899154 11.163878 9.234751 1.0986123 2014 500321035 25 11.62529 11.021902 10.128515 .6931472 2015 500321035 25 11.825748 11.063978 9.26917 .6931472 2016 500321035 25 11.470373 10.60075 9.220348 .6931472 2018 500321035 25 11.546021 10.99375 9.099193 0 2019 500321035 25 11.381244 10.543893 9.113893 0 2014 500331816 56 11.209317 10.05363 11.310687 0 2010 500369375 47 11.670322 12.6072 11.022923 .6931472 2011 500369375 47 11.847568 12.535297 . .6931472 2012 500369375 47 11.566438 12.44148 . 0 2010 500392001 25 11.07234 10.384833 9.811321 .6931472 2011 500392001 25 10.580175 10.542865 . .6931472 2013 500392001 25 10.776056 10.584106 8.519679 0 2014 500392001 25 10.570137 10.49255 9.481566 0 2015 500392001 25 10.945635 10.397116 8.534858 0 end
Listed 100 out of 274919 observations
When I run this code:
Code:
xtset NPC_FIC year
Panel variable: NPC_FIC (unbalanced)
Time variable: year, 2010 to 2020, but with gaps
Delta: 1 unit
. gen tfp_op_output=.
(274,919 missing values generated)
. gen tfp_op_va=.
(274,919 missing values generated)
.
. set more off
. local indus "3 6 7 9 10 11 12 13"
.
. foreach industry of local indus{
2.
. di "********** INDUSTRIA `industry' "
3. prodest log_y if CAE_2==`industry', free(log_lab) state(log_k) proxy(lnmaterials) va met(lp) att re
> ps(50) id(NPC_FIC) t(year)
4. predict out_lp, resid
5. replace tfp_op_output=ln(out_lp)
6. drop out_lp
7. }
********** INDUSTRIA 3
year must have multiple distinct nonmissing values
r(459);
end of do-file
Cheers,
Paris
Comment