Hello,
I have the dataset on airtravel. It includes 7mln tickets, each of them with it's own code. There is information on route (origin and destination), airline name and date. Additional information icludes price of each ticket, location-specivic characteristics, price of gasoline in each week, distance and so on.
I tried to specify the panel, using xtset in the following way: xtset flight num_day , where flight is the code of flight and num_day is the number of each day in 2013 (from 1 to 365)
Stata writes "repeated time values within panel". Now I understand that this is because there were many passengers on each flight.
But my question is how should I define the panel if each of the coupon numbers is unique and "contains" information on route, airline, flight number and date at the same time?
p.s. if I take it as not panel, then I will treat the tickets of the same airline on the same direction but in different dates as completely different observations, which is not good, as I understand
Thank you very much
Alexander
I have the dataset on airtravel. It includes 7mln tickets, each of them with it's own code. There is information on route (origin and destination), airline name and date. Additional information icludes price of each ticket, location-specivic characteristics, price of gasoline in each week, distance and so on.
I tried to specify the panel, using xtset in the following way: xtset flight num_day , where flight is the code of flight and num_day is the number of each day in 2013 (from 1 to 365)
Stata writes "repeated time values within panel". Now I understand that this is because there were many passengers on each flight.
But my question is how should I define the panel if each of the coupon numbers is unique and "contains" information on route, airline, flight number and date at the same time?
p.s. if I take it as not panel, then I will treat the tickets of the same airline on the same direction but in different dates as completely different observations, which is not good, as I understand
Thank you very much
Alexander
Comment