Code:
ssc install prodest
Its basic usage is similar to that of existing modules like opreg or levpet, but adds many features to control the optimization procedures and address estimation issues - gross output vs. value added, endogenous variables, attrition in the data. Type
Code:
help prodest
prodest is an ongoing project and the current version (1.0.2) is not meant not be definitive. Therefore suggestions, impressions and bug reporting are more than welcome.
Below some examples of the program usage
Code:
. insheet using https://raw.githubusercontent.com/GabBrock/prodest/master/prodest.csv, names clear (8 vars, 1,758 obs) . prodest log_y, free(log_lab1 log_lab2) state(log_k) proxy(log_investment) va met(op) poly(4) opt( > bfgs) reps(40) id(id) t(year) .........10.........20.........30.........40 op productivity estimator Dependent variable: value added Number of obs = 1758 Group variable (id): id Number of groups = 386 Time variable (t): year Obs per group: min = 1 avg = 4.6 max = 12 ------------------------------------------------------------------------------ log_y | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- log_lab1 | .2602104 .0454651 5.72 0.000 .1711005 .3493204 log_lab2 | .1609835 .0492148 3.27 0.001 .0645242 .2574428 log_k | .2963724 .0824046 3.60 0.000 .1348624 .4578824 ------------------------------------------------------------------------------ . prodest log_y, free(log_lab1 log_lab2) state(log_k) proxy(log_investment) va met(op) acf opt(nm) > reps(50) id(id) t(year) .........10.........20.........30.........40.........50 op productivity estimator ACF corrected Dependent variable: value added Number of obs = 1758 Group variable (id): id Number of groups = 386 Time variable (t): year Obs per group: min = 1 avg = 4.6 max = 12 ------------------------------------------------------------------------------ log_y | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- log_lab1 | .2161255 .0995254 2.17 0.030 .0210593 .4111917 log_lab2 | .2362255 .0637043 3.71 0.000 .1113673 .3610836 log_k | .4552823 .0930899 4.89 0.000 .2728295 .637735 ------------------------------------------------------------------------------ . prodest log_y, free(log_lab1 log_lab2) state(log_k) proxy(log_materials) va met(lp) opt(dfp) reps > (50) id(id) t(year) .........10.........20.........30.........40.........50 lp productivity estimator Dependent variable: value added Number of obs = 1758 Group variable (id): id Number of groups = 386 Time variable (t): year Obs per group: min = 1 avg = 4.6 max = 12 ------------------------------------------------------------------------------ log_y | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- log_lab1 | .2262627 .0386052 5.86 0.000 .1505978 .3019276 log_lab2 | .1518426 .0389601 3.90 0.000 .0754821 .228203 log_k | .2155473 .0409458 5.26 0.000 .1352951 .2957996 ------------------------------------------------------------------------------
Comment