Hello everyone,
I am in desperate need for help because I am stuck.
I have data for individual airplanes, the manufacturers of the airplanes, the build years, the submarkets (small, medium, large size airplanes) as well as the survival of an airplane ( 1 if the airplane is in use and 0 if it is retired).
I want to calculate the market share of each manufacturer on a annual basis given as: (Number of Airplanes of Manufacturer i in submarket j)/(Total Number of Airplanes in submarket j).
clear
input str32 Type str20 SerialNumber str42 Manufacturer int BuildYear str6 Submarket byte Survival
"A320" "20230" "Airbus" 1969 "Heavy" 1
"707" "19000" "Hawker Beechcraft Corp" 1965 "Heavy" 0
"707" "20518" "Boeing" 1972 "Large" 1
"707" "20519" "Boeing" 1972 "Heavy" 1
"E175" "21250" "Bombardier (Canadair)" 1977 "Heavy" 1
"707" "21207" "Boeing" 1976 "Small" 1
"707" "21208" "Boeing" 1984 "Heavy" 0
"Il-96" "21209" "Fokker" 1976 "Heavy" 1
"707" "21434" "Boeing" 1977 "Medium" 1
"A320" "21047" "Airbus" 1975 "Heavy" 0
"707" "21435" "Boeing" 1977 "Large" 1
"707" "21436" "Boeing" 1984"Heavy" 1
end
I just can not understand how to sort my data.
Any help is welcome!!
I am in desperate need for help because I am stuck.
I have data for individual airplanes, the manufacturers of the airplanes, the build years, the submarkets (small, medium, large size airplanes) as well as the survival of an airplane ( 1 if the airplane is in use and 0 if it is retired).
I want to calculate the market share of each manufacturer on a annual basis given as: (Number of Airplanes of Manufacturer i in submarket j)/(Total Number of Airplanes in submarket j).
clear
input str32 Type str20 SerialNumber str42 Manufacturer int BuildYear str6 Submarket byte Survival
"A320" "20230" "Airbus" 1969 "Heavy" 1
"707" "19000" "Hawker Beechcraft Corp" 1965 "Heavy" 0
"707" "20518" "Boeing" 1972 "Large" 1
"707" "20519" "Boeing" 1972 "Heavy" 1
"E175" "21250" "Bombardier (Canadair)" 1977 "Heavy" 1
"707" "21207" "Boeing" 1976 "Small" 1
"707" "21208" "Boeing" 1984 "Heavy" 0
"Il-96" "21209" "Fokker" 1976 "Heavy" 1
"707" "21434" "Boeing" 1977 "Medium" 1
"A320" "21047" "Airbus" 1975 "Heavy" 0
"707" "21435" "Boeing" 1977 "Large" 1
"707" "21436" "Boeing" 1984"Heavy" 1
end
I just can not understand how to sort my data.
Any help is welcome!!
Comment