Dear Statalist Users,
I am trying to measure the impact of Uber on the earnings of taxi drivers and would greatly appreciate advice on how best to tackle this on STATA 16.1.
I have the following data:
1) I have pooled cross sectional individual level data on taxi drivers across 5 major US cities across 10 years: Earnings (dependant variable lnincearn) and various individual and city level characteristics (age, gender, citizenship, unemployment)
2) Data on when uber was introduced in their specific city: Dummy variable UBER which takes the value 1 if uber was present in their city in that year and 0 otherwise
I am looking to measure the impact of Uber on their earnings while controlling for individual and city level characteristics and have looked into using xtset/xtreg which says there are too many time values within panel.
Would greatly appreciate suggestions on how I could approach this via STATA.
Below is a snapshot of my data where met2013 is the identifier for the city the individual is in and lincearn is the log of their earnings.
Kind regards,
Aayush Bakshi
I am trying to measure the impact of Uber on the earnings of taxi drivers and would greatly appreciate advice on how best to tackle this on STATA 16.1.
I have the following data:
1) I have pooled cross sectional individual level data on taxi drivers across 5 major US cities across 10 years: Earnings (dependant variable lnincearn) and various individual and city level characteristics (age, gender, citizenship, unemployment)
2) Data on when uber was introduced in their specific city: Dummy variable UBER which takes the value 1 if uber was present in their city in that year and 0 otherwise
I am looking to measure the impact of Uber on their earnings while controlling for individual and city level characteristics and have looked into using xtset/xtreg which says there are too many time values within panel.
Would greatly appreciate suggestions on how I could approach this via STATA.
Below is a snapshot of my data where met2013 is the identifier for the city the individual is in and lincearn is the log of their earnings.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input int year long met2013 float(uber lincearn) 2009 12420 0 10.12663 2009 12420 0 9.680344 2009 12420 0 10.308952 2009 12420 0 10.308952 2009 12420 0 9.740969 2009 12420 0 9.423838 2009 12420 0 9.775654 2009 12420 0 10.714417 2009 12420 0 10.596635 2009 12420 0 10.819778 2009 12420 0 9.998797 2009 12420 0 9.2103405 2009 12420 0 9.798127 2009 12420 0 9.425451 2009 12420 0 . 2009 12420 0 9.723164 2009 12420 0 10.12663 2009 12420 0 10.819778 2009 12420 0 10.341743 2009 12420 0 11.0021 2009 12420 0 10.08581 2009 12420 0 10.645425 2009 12420 0 . 2009 12420 0 9.287301 2009 12420 0 10.463103 2009 12420 0 9.159047 2009 12420 0 10.308952 2009 12420 0 10.488493 2009 12420 0 12.538967 2009 12420 0 . 2009 12420 0 8.987197 2009 12420 0 6.39693 2009 12420 0 10.37349 2009 12420 0 . 2009 12420 0 9.903487 2009 12420 0 10.691945 2009 12420 0 5.703783 2009 12420 0 . 2009 12420 0 9.2103405 2009 12420 0 . 2009 12420 0 8.853665 2009 12420 0 10.18112 2009 12420 0 9.746834 2009 12420 0 9.1049795 2009 12420 0 10.060492 2009 12420 0 10.37349 2009 12420 0 8.294049 2009 12420 0 9.92818 2009 12420 0 9.798127 2009 12420 0 7.901007 2009 12420 0 . 2009 12420 0 9.392662 2009 12420 0 11.141862 2009 12420 0 9.169518 2009 12420 0 10.714417 2009 12420 0 11.0021 2009 12420 0 10.491274 2009 12420 0 10.691945 2009 12420 0 8.961879 2009 12420 0 10.12663 2009 12420 0 6.55108 2009 12420 0 10.819778 2009 12420 0 . 2009 12420 0 10.645425 2009 12420 0 . 2009 12420 0 10.308952 2009 12420 0 10.714417 2009 12420 0 8.853665 2009 12420 0 . 2009 12420 0 10.596635 2009 12420 0 10.308952 2009 12420 0 8.764053 2009 12420 0 10.518673 2009 12420 0 9.539644 2009 12420 0 10.203592 2009 12420 0 8.294049 2009 12420 0 10.437053 2009 12420 0 10.645425 2009 12420 0 6.55108 2009 12420 0 10.778956 2009 12420 0 9.903487 2009 12420 0 10.485703 2009 12420 0 9.392662 2009 12420 0 10.819778 2009 12420 0 . 2009 12420 0 10.714417 2009 12420 0 9.11603 2009 12420 0 . 2009 12420 0 . 2009 12420 0 8.699514 2009 12420 0 10.404263 2009 12420 0 10.23996 2009 12420 0 11.0021 2009 12420 0 10.645425 2009 12420 0 8.881836 2009 12420 0 8.517193 2009 12420 0 9.615806 2009 12420 0 9.305651 2009 12420 0 10.16969 2009 12420 0 9.305651 end label values year year_lbl label def year_lbl 2009 "2009", modify label values met2013 met2013_lbl label def met2013_lbl 12420 "Austin-Round Rock, TX", modify
Aayush Bakshi
Comment