You are on page 1of 2

data sales ; input Product $ ;

Location $ No_Stores

Sales

Inventory

Returns

Ind_chicago=0 ; If Location = 'chicago' then Ind_chicago=1 ; Ind_Minneapolis=0 ; If Location = 'Minneapolis' then Ind_Minneapolis =1 ; Ind_Newyork= 1-Ind_chicago-Ind_Minneapolis ; datalines ; Mcausual Mdress Wcausual Wdress Mcausual Mdress Wcausual Wdress Mcausual Mdress Wcausual Wdress ; Chicago Chicago Chicago Chicago Minneapolis Minneapolis Minneapolis Minneapolis Newyork Newyork Newyork Newyork 26 28 11 37 16 22 7 27 20 18 10 17 409 262 172 293 264 236 111 224 457 192 179 289 832 824 475 754 565 624 287 761 890 658 438 1120 179 89 54 10 100 7 3 6 13 5 4 10

Proc print ; title 'Sales data for the last month of the previous year for three loca tions' ; run ; Proc plot ; plot No_stores*Returns ; title 'Number of stores against the product returns' ; run; quite; proc sort; by Location; run; proc print; title 'Input data and variables created after Ascending sort by location variable' run; proc means n mean var std min max ; var Returns ; by Location ; run; proc means var No_stores By Location ; run ; n mean var std min max; sales Inventory Returns ;

proc print ; title 'sales summary' run;

You might also like