I was thinking about using the egen command or collapse and than merge both datasets.
Create number of destinations from the airports
egen numdest = group(dest)
or:
collapse numdest, by(origin year quarter)
merge one to one
It looks like this: T100 domestic data
Year | Quarter | Origin | Dest | Airline |
2005 | Q1 | ATL | DWT | Delta |
2007 | Q2 | ATL | MEM | Continental |
0 Response to Origin Dest Airline Data
Post a Comment