Dear statalists,
I have a data set of treated (employees purchasing stocks through a firm´s stock option scheme) and non-treated (employees not purchasing stocks thorugh a firm´s stock option scheme) individuals with two periods (before and after treatment) and several controls.
Only those employees that purchased stock-options for the first time are considered in the treatment group. Hence, the data set is very unbalances as the control group (non-treatment) is several times larger than the treatment group.
My dependend variable is a count variable of ideas issued to an idea suggestion scheme - so we are interested in whether employees owning stocks are issuing more ideas that employees not owning stocks in the firm.
Variables are:
DV: newidea_a_did_1
treatment dummy: did_eso_treatment
period dummy: period
tnteraction period x treatment: treatment_X_period
+ several controls
I have attached and excerpt of my data below
The question is, can I run a difference in difference regression using nbreg just as I would do it with the common reg command? I think nbreg is more appropriate due to having count data extremely skewed to the left?
reg command: reg newidea_a_did_1 period did_eso_treatment treatment_X_period year fulltime_did_1 size_did_1 dummy_function_1_did_1 dummy_level_1_did_1, vce(robust)
nbreg command: nbreg newidea_a_did_1 period did_eso_treatment treatment_X_period year fulltime_did_1 size_did_1 dummy_function_1_did_1 dummy_level_1_did_1
Thanks for your help!
Felix
I have a data set of treated (employees purchasing stocks through a firm´s stock option scheme) and non-treated (employees not purchasing stocks thorugh a firm´s stock option scheme) individuals with two periods (before and after treatment) and several controls.
Only those employees that purchased stock-options for the first time are considered in the treatment group. Hence, the data set is very unbalances as the control group (non-treatment) is several times larger than the treatment group.
My dependend variable is a count variable of ideas issued to an idea suggestion scheme - so we are interested in whether employees owning stocks are issuing more ideas that employees not owning stocks in the firm.
Variables are:
DV: newidea_a_did_1
treatment dummy: did_eso_treatment
period dummy: period
tnteraction period x treatment: treatment_X_period
+ several controls
I have attached and excerpt of my data below
The question is, can I run a difference in difference regression using nbreg just as I would do it with the common reg command? I think nbreg is more appropriate due to having count data extremely skewed to the left?
reg command: reg newidea_a_did_1 period did_eso_treatment treatment_X_period year fulltime_did_1 size_did_1 dummy_function_1_did_1 dummy_level_1_did_1, vce(robust)
nbreg command: nbreg newidea_a_did_1 period did_eso_treatment treatment_X_period year fulltime_did_1 size_did_1 dummy_function_1_did_1 dummy_level_1_did_1
Thanks for your help!
Felix
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte period long newid int(year newidea_a_did_1) byte(fulltime_did_1 dummy_function_1_did_1 dummy_level_1_did_1) int size_did_1 byte did_eso_treatment float treatment_X_period 0 164876 2014 0 1 0 0 1 0 0 1 12837 2014 0 1 0 0 1 0 0 1 136451 2015 0 1 0 0 1 0 0 1 95503 2013 0 1 0 0 1 0 0 0 148296 2013 0 1 0 0 1 0 0 0 164616 2014 0 1 0 0 1 0 0 1 79008 2011 0 1 0 0 1 0 0 1 113462 2015 0 1 0 0 1 0 0 1 104390 2012 0 1 0 0 1 0 0 0 5472 2012 4 1 0 0 1 0 0 0 129275 2015 0 1 0 0 1 0 0 1 47902 2015 0 1 0 0 1 0 0 1 89282 2013 0 1 0 0 1 0 0 1 154119 2013 0 1 0 0 1 0 0 0 80340 2013 0 1 0 0 1 0 0 0 5542 2014 3 1 0 0 1 0 0 1 159958 2014 0 1 0 0 1 0 0 1 30037 2015 0 1 0 0 1 0 0 1 68050 2015 0 1 0 0 1 0 0 0 26429 2014 0 1 0 0 1 0 0 0 18680 2013 0 1 0 0 1 0 0 0 127988 2015 1 1 0 0 1 0 0 1 55030 2013 0 1 0 0 1 0 0 0 1123 2014 1 1 0 0 1 0 0 0 7311 2012 0 1 0 0 1 0 0 1 132880 2012 0 1 0 1 1 0 0 0 114821 2015 0 0 0 0 1 0 0 0 12697 2015 1 1 0 0 1 0 0 1 22619 2011 0 1 0 0 1 0 0 1 13878 2014 0 1 0 0 1 0 0 1 21819 2014 0 1 0 0 1 0 0 0 108467 2013 0 1 0 0 1 0 0 0 23320 2013 0 1 0 0 1 0 0 0 38465 2015 0 1 0 0 1 0 0 1 67225 2011 0 1 0 0 1 0 0 1 108023 2013 0 1 0 0 1 0 0 1 78626 2015 1 1 0 0 1 0 0 1 162525 2015 1 1 0 0 1 0 0 0 88884 2014 0 1 0 0 1 0 0 1 21763 2013 0 1 0 0 1 0 0 0 13552 2011 0 1 0 0 1 0 0 1 68124 2015 0 1 0 0 1 0 0 0 13595 2011 0 1 0 0 1 0 0 0 140693 2012 0 1 0 1 1 0 0 1 68069 2014 0 1 0 0 1 0 0 0 69566 2013 0 1 0 0 1 0 0 1 116535 2012 0 1 0 0 1 0 0 0 5935 2011 0 1 0 0 1 0 0 0 37895 2012 0 1 1 0 1 0 0 1 124789 2011 0 1 0 0 1 0 0 1 53398 2013 0 1 0 0 1 0 0 1 145305 2015 3 1 0 0 1 0 0 0 5975 2013 0 1 0 0 1 0 0 0 5991 2011 0 1 0 0 1 0 0 0 5991 2013 0 1 0 0 1 0 0 1 13616 2015 0 1 0 0 1 0 0 0 5999 2015 0 1 0 0 1 0 0 0 150473 2012 0 1 0 0 1 0 0 1 164520 2011 0 1 0 0 1 0 0 0 147783 2015 0 1 0 0 1 0 0 0 79014 2015 0 1 0 0 1 0 0 0 154112 2011 0 1 0 0 1 0 0 0 32056 2015 0 1 0 0 1 0 0 1 77614 2012 0 1 0 1 1 0 0 0 78915 2015 0 1 0 0 1 0 0 1 125923 2011 0 1 1 0 1 0 0 0 22439 2014 2 1 0 0 1 0 0 1 127811 2015 0 1 0 0 1 0 0 0 5542 2015 0 1 0 0 1 0 0 1 79014 2012 0 1 0 0 1 0 0 0 160757 2013 0 1 0 0 1 0 0 0 133963 2015 0 1 0 0 1 0 0 0 69247 2011 0 1 0 0 1 0 0 0 108467 2014 1 1 0 0 1 0 0 0 6297 2014 0 1 0 0 1 0 0 1 109064 2015 0 1 0 0 1 0 0 0 5944 2015 0 1 0 0 1 0 0 1 13399 2014 0 1 0 0 1 0 0 1 67948 2013 0 1 0 0 1 0 0 0 26745 2013 0 1 0 0 1 0 0 1 124741 2014 0 1 0 0 1 0 0 1 80122 2014 3 1 0 0 1 0 0 1 131175 2012 0 1 0 0 1 0 0 0 164807 2014 0 1 0 0 1 0 0 1 33422 2011 0 1 1 0 1 0 0 1 115241 2011 0 1 0 0 1 0 0 0 127199 2013 0 1 0 0 1 0 0 0 13878 2015 0 1 0 0 1 0 0 0 147779 2015 0 1 0 0 1 0 0 0 87807 2011 0 1 0 0 1 0 0 0 6627 2015 0 0 0 0 1 0 0 0 96166 2013 0 1 0 0 1 0 0 0 6661 2011 0 1 0 0 1 0 0 0 6664 2014 0 1 0 0 1 0 0 1 161085 2012 0 1 0 0 1 0 0 0 21961 2015 0 1 0 0 1 0 0 1 160757 2012 0 1 0 0 1 0 0 1 22469 2011 0 1 0 0 1 0 0 0 6804 2011 0 1 0 0 1 0 0 0 6804 2013 0 1 0 0 1 0 0 end
Comment