Beverage Company Case Study

This case study is based on a fictional US beverage company that sells soft drinks, energy drinks, and flavored waters in the states of Georgia, South Carolina, North Carolina, Virginia, and Maryland, along with the District of Columbia. Weekly sales data for the year 2016 is given at the county level in each state (and the District of Columbia). Quantities sold are recorded for all products, across each unit available for retail sales--individual containers and multi-bottle or can packs. These data are initially separated by product category and region, and are not always given in the same format; however, by the end of the case study, it is expected that they can all be combined into a single data source.
 
Population data is also given for the corresponding counties and DC, and is used as the basis for per capita sales analyses.
 
Various instructions are given in portions of the case study corresponding to each book chapter. However, it is very important to pay attention to titles, footnotes, labels, and other aspects of output that give information on exactly what is being done in a table or graph.
 
Data for the case study can be downloaded in the following .zip files: Raw Data, SAS Data, and Microsoft Access Database.



Chapter 2 Activities

Data for the following tables is contained in the file "ColaNCSCGA.sas7bdat". Variables in this file include:
Each sale is recorded with the unit size and the container size. So, for example, if the Size is 20 oz and the unit size is 8, the units are 8-packs of 20 oz bottles.



Activity 2.1
Summary of Units Sold
Single Unit Packages

The MEANS Procedure

Analysis Variable : UnitsSold
StateFIPS productName Container Size Containers per Unit Sum Minimum Maximum
13 Cherry Cola 1 liter 1 1236824.00 0 3371.00
    12 oz 1 2470600.00 0 7863.00
    2 liter 1 1235756.00 0 3892.00
    20 oz 1 2449210.00 0 9442.00
  Cola 1 liter 1 2456662.00 0 8066.00
    12 oz 1 4976799.00 0 15162.00
    2 liter 1 2466703.00 0 7629.00
    20 oz 1 4965538.00 3.0000000 14408.00
  Diet Cherry Cola 1 liter 1 421425.00 0 1507.00
    12 oz 1 863419.00 1.0000000 2796.00
    2 liter 1 430220.00 0 1411.00
    20 oz 1 855531.00 0 2588.00
  Diet Cola 1 liter 1 869837.00 1.0000000 2962.00
    12 oz 1 1730505.00 0 4963.00
    2 liter 1 867792.00 0 2402.00
    20 oz 1 1729016.00 0 5460.00
  Diet Vanilla Cola 12 oz 1 859478.00 0 2934.00
    2 liter 1 426073.00 0 1183.00
    20 oz 1 860222.00 0 2808.00
  Vanilla Cola 12 oz 1 2458185.00 0 6669.00
    2 liter 1 1241469.00 0 3515.00
    20 oz 1 2470522.00 0 7817.00
37 Cherry Cola 1 liter 1 1445344.00 0 4459.00
    12 oz 1 2922327.00 8.0000000 9573.00
    2 liter 1 1450980.00 0 4725.00
    20 oz 1 2898152.00 5.0000000 10475.00
  Cola 1 liter 1 2891250.00 4.0000000 9779.00
    12 oz 1 5832961.00 0 17566.00
    2 liter 1 2895756.00 0 9634.00
    20 oz 1 5821204.00 0 21559.00
  Diet Cherry Cola 1 liter 1 501478.00 0 1745.00
    12 oz 1 1014177.00 0 3004.00
    2 liter 1 508182.00 0 1942.00
    20 oz 1 1013926.00 0 3669.00
  Diet Cola 1 liter 1 1012437.00 2.0000000 3871.00
    12 oz 1 2025423.00 0 6842.00
    2 liter 1 1018943.00 0 3300.00
    20 oz 1 2012035.00 0 7267.00
  Diet Vanilla Cola 12 oz 1 1014623.00 0 3596.00
    2 liter 1 507482.00 1.0000000 1805.00
    20 oz 1 1014952.00 0 3216.00
  Vanilla Cola 12 oz 1 2898926.00 0 10383.00
    2 liter 1 1441787.00 1.0000000 4477.00
    20 oz 1 2884575.00 0 9462.00
45 Cherry Cola 1 liter 1 716390.00 8.0000000 2308.00
    12 oz 1 1440800.00 12.0000000 4384.00
    2 liter 1 725727.00 7.0000000 2142.00
    20 oz 1 1436945.00 0 4602.00
  Cola 1 liter 1 1428107.00 0 4883.00
    12 oz 1 2861305.00 0 8954.00
    2 liter 1 1432861.00 15.0000000 4558.00
    20 oz 1 2887580.00 25.0000000 8295.00
  Diet Cherry Cola 1 liter 1 251493.00 0 849.0000000
    12 oz 1 502991.00 0 1609.00
    2 liter 1 248867.00 2.0000000 796.0000000
    20 oz 1 503224.00 1.0000000 1651.00
  Diet Cola 1 liter 1 506084.00 3.0000000 1483.00
    12 oz 1 1002051.00 6.0000000 2954.00
    2 liter 1 506866.00 0 1580.00
    20 oz 1 1014091.00 3.0000000 2940.00
  Diet Vanilla Cola 12 oz 1 502549.00 0 1542.00
    2 liter 1 253643.00 2.0000000 714.0000000
    20 oz 1 507987.00 0 1555.00
  Vanilla Cola 12 oz 1 1465230.00 6.0000000 4696.00
    2 liter 1 719552.00 0 2247.00
    20 oz 1 1438702.00 13.0000000 4097.00

Minimum and maximum Sales are within any county for any week



Activity 2.2
Summary of Units Sold
12oz Size Diet Products

The MEANS Procedure

Analysis Variable : UnitsSold
StateFIPS productName Container Size Containers per Unit Sum Minimum Maximum
13 Diet Cherry Cola 12 oz 1 863419.00 1.0000000 2796.00
      6 426776.00 0 1163.00
      12 7582.00 0 27.0000000
      24 7557.00 0 28.0000000
  Diet Cola 12 oz 1 1730505.00 0 4963.00
      6 866227.00 0 2414.00
      12 171778.00 0 530.0000000
      24 173539.00 0 616.0000000
  Diet Vanilla Cola 12 oz 1 859478.00 0 2934.00
      6 430428.00 0 1371.00
      24 7495.00 0 25.0000000
37 Diet Cherry Cola 12 oz 1 1014177.00 0 3004.00
      6 505381.00 0 1790.00
      12 9682.00 0 31.0000000
      24 9711.00 0 34.0000000
  Diet Cola 12 oz 1 2025423.00 0 6842.00
      6 1013597.00 0 3418.00
      12 203711.00 0 701.0000000
      24 203314.00 0 640.0000000
  Diet Vanilla Cola 12 oz 1 1014623.00 0 3596.00
      6 503463.00 1.0000000 1672.00
      24 9639.00 0 34.0000000
45 Diet Cherry Cola 12 oz 1 502991.00 0 1609.00
      6 248768.00 0 715.0000000
      12 4877.00 0 15.0000000
      24 4867.00 0 14.0000000
  Diet Cola 12 oz 1 1002051.00 6.0000000 2954.00
      6 499068.00 5.0000000 1709.00
      12 100094.00 1.0000000 288.0000000
      24 100357.00 1.0000000 295.0000000
  Diet Vanilla Cola 12 oz 1 502549.00 0 1542.00
      6 254852.00 0 694.0000000
      24 4889.00 0 15.0000000

Minimum and maximum Sales are within any county for any week



Activity 2.3
Cross Tabulation of Single Unit Product Sales in Various States

The FREQ Procedure

Frequency
Percent
Row Pct
Col Pct
Table 1 of StateFIPS by size
Controlling for productName=Cherry Cola
StateFIPS size(Container Size)
1 liter 12 oz 2 liter 20 oz Total
13
1,236,824
6.05
16.73
36.39
2,470,600
12.09
33.42
36.15
1,235,756
6.05
16.72
36.21
2,449,210
11.99
33.13
36.10
7,392,390
36.19
 
 
37
1,445,344
7.07
16.58
42.53
2,922,327
14.30
33.53
42.76
1,450,980
7.10
16.65
42.52
2,898,152
14.19
33.25
42.72
8,716,803
42.67
 
 
45
716,390
3.51
16.58
21.08
1,440,800
7.05
33.35
21.08
725,727
3.55
16.80
21.27
1,436,945
7.03
33.26
21.18
4,319,862
21.15
 
 
Total
3,398,558
16.64
6,833,727
33.45
3,412,463
16.70
6,784,307
33.21
20,429,055
100.00

Frequency
Percent
Row Pct
Col Pct
Table 2 of StateFIPS by size
Controlling for productName=Cola
StateFIPS size(Container Size)
1 liter 12 oz 2 liter 20 oz Total
13
2,456,662
6.00
16.53
36.26
4,976,799
12.16
33.48
36.40
2,466,703
6.03
16.59
36.30
4,965,538
12.14
33.40
36.31
14,865,702
36.33
 
 
37
2,891,250
7.07
16.58
42.67
5,832,961
14.26
33.44
42.67
2,895,756
7.08
16.60
42.61
5,821,204
14.23
33.38
42.57
17,441,171
42.63
 
 
45
1,428,107
3.49
16.59
21.08
2,861,305
6.99
33.23
20.93
1,432,861
3.50
16.64
21.09
2,887,580
7.06
33.54
21.12
8,609,853
21.04
 
 
Total
6,776,019
16.56
13,671,065
33.41
6,795,320
16.61
13,674,322
33.42
40,916,726
100.00

Frequency
Percent
Row Pct
Col Pct
Table 3 of StateFIPS by size
Controlling for productName=Diet Cherry Cola
StateFIPS size(Container Size)
1 liter 12 oz 2 liter 20 oz Total
13
421,425
5.92
16.39
35.88
863,419
12.14
33.59
36.27
430,220
6.05
16.74
36.24
855,531
12.02
33.28
36.06
2,570,595
36.13
 
 
37
501,478
7.05
16.51
42.70
1,014,177
14.25
33.39
42.60
508,182
7.14
16.73
42.80
1,013,926
14.25
33.38
42.73
3,037,763
42.70
 
 
45
251,493
3.53
16.69
21.41
502,991
7.07
33.39
21.13
248,867
3.50
16.52
20.96
503,224
7.07
33.40
21.21
1,506,575
21.17
 
 
Total
1,174,396
16.51
2,380,587
33.46
1,187,269
16.69
2,372,681
33.35
7,114,933
100.00

Frequency
Percent
Row Pct
Col Pct
Table 4 of StateFIPS by size
Controlling for productName=Diet Cola
StateFIPS size(Container Size)
1 liter 12 oz 2 liter 20 oz Total
13
869,837
6.08
16.74
36.42
1,730,505
12.11
33.30
36.37
867,792
6.07
16.70
36.25
1,729,016
12.10
33.27
36.36
5,197,150
36.36
 
 
37
1,012,437
7.08
16.68
42.39
2,025,423
14.17
33.37
42.57
1,018,943
7.13
16.79
42.57
2,012,035
14.08
33.15
42.31
6,068,838
42.45
 
 
45
506,084
3.54
16.71
21.19
1,002,051
7.01
33.08
21.06
506,866
3.55
16.73
21.18
1,014,091
7.09
33.48
21.33
3,029,092
21.19
 
 
Total
2,388,358
16.71
4,757,979
33.28
2,393,601
16.74
4,755,142
33.26
14,295,080
100.00

Frequency
Percent
Row Pct
Col Pct
Table 5 of StateFIPS by size
Controlling for productName=Diet Vanilla Cola
StateFIPS size(Container Size)
1 liter 12 oz 2 liter 20 oz Total
13
0
0.00
0.00
.
859,478
14.45
40.05
36.16
426,073
7.16
19.86
35.89
860,222
14.46
40.09
36.10
2,145,773
36.08
 
 
37
0
0.00
0.00
.
1,014,623
17.06
39.99
42.69
507,482
8.53
20.00
42.75
1,014,952
17.07
40.01
42.59
2,537,057
42.66
 
 
45
0
0.00
0.00
.
502,549
8.45
39.75
21.15
253,643
4.27
20.06
21.36
507,987
8.54
40.18
21.32
1,264,179
21.26
 
 
Total
0
0.00
2,376,650
39.96
1,187,198
19.96
2,383,161
40.07
5,947,009
100.00

Frequency
Percent
Row Pct
Col Pct
Table 6 of StateFIPS by size
Controlling for productName=Vanilla Cola
StateFIPS size(Container Size)
1 liter 12 oz 2 liter 20 oz Total
13
0
0.00
0.00
.
2,458,185
14.44
39.84
36.03
1,241,469
7.29
20.12
36.48
2,470,522
14.52
40.04
36.36
6,170,176
36.25
 
 
37
0
0.00
0.00
.
2,898,926
17.03
40.12
42.49
1,441,787
8.47
19.95
42.37
2,884,575
16.95
39.92
42.46
7,225,288
42.45
 
 
45
0
0.00
0.00
.
1,465,230
8.61
40.44
21.48
719,552
4.23
19.86
21.15
1,438,702
8.45
39.70
21.18
3,623,484
21.29
 
 
Total
0
0.00
6,822,341
40.09
3,402,808
19.99
6,793,799
39.92
17,018,948
100.00



The next two tables require that the raw data contained in "Counties--NC,SC,GA.csv" be read in. Information about the file structure is contained in its header.



Activity 2.4
Total State Population Estimates, 2017
with Maximums and Minimum County Sizes

The MEANS Procedure

Analysis Variable : popestimate2017
stateName N Obs Sum Maximum Minimum
Georgia 159 10429379.00 1041423.00 1628.00
North Carolina 100 10273419.00 1076837.00 4052.00
South Carolina 46 5024369.00 506837.00 9002.00



Activity 2.5
County Sizes vs State

The FREQ Procedure

Frequency
Percent
Row Pct
Col Pct
Table of stateName by popestimate2017
stateName popestimate2017
100K and below 100-250K 250-500K Above500K Total
Georgia
134
43.93
84.28
56.30
19
6.23
11.95
40.43
2
0.66
1.26
16.67
4
1.31
2.52
50.00
159
52.13
 
 
North Carolina
73
23.93
73.00
30.67
20
6.56
20.00
42.55
4
1.31
4.00
33.33
3
0.98
3.00
37.50
100
32.79
 
 
South Carolina
31
10.16
67.39
13.03
8
2.62
17.39
17.02
6
1.97
13.04
50.00
1
0.33
2.17
12.50
46
15.08
 
 
Total
238
78.03
47
15.41
12
3.93
8
2.62
305
100.00



Later we will see how to combine data sets like the county population and sales data. For now, a user-defined format can improve the display of state names.



Activity 2.6
Summary of Units Sold
12oz Size Diet Products

The MEANS Procedure

Analysis Variable : UnitsSold
StateFIPS productName Container Size Containers per Unit Sum Minimum Maximum
Georgia Diet Cherry Cola 12 oz 1 863419.00 1.0000000 2796.00
      6 426776.00 0 1163.00
      12 7582.00 0 27.0000000
      24 7557.00 0 28.0000000
  Diet Cola 12 oz 1 1730505.00 0 4963.00
      6 866227.00 0 2414.00
      12 171778.00 0 530.0000000
      24 173539.00 0 616.0000000
  Diet Vanilla Cola 12 oz 1 859478.00 0 2934.00
      6 430428.00 0 1371.00
      24 7495.00 0 25.0000000
North Carolina Diet Cherry Cola 12 oz 1 1014177.00 0 3004.00
      6 505381.00 0 1790.00
      12 9682.00 0 31.0000000
      24 9711.00 0 34.0000000
  Diet Cola 12 oz 1 2025423.00 0 6842.00
      6 1013597.00 0 3418.00
      12 203711.00 0 701.0000000
      24 203314.00 0 640.0000000
  Diet Vanilla Cola 12 oz 1 1014623.00 0 3596.00
      6 503463.00 1.0000000 1672.00
      24 9639.00 0 34.0000000
South Carolina Diet Cherry Cola 12 oz 1 502991.00 0 1609.00
      6 248768.00 0 715.0000000
      12 4877.00 0 15.0000000
      24 4867.00 0 14.0000000
  Diet Cola 12 oz 1 1002051.00 6.0000000 2954.00
      6 499068.00 5.0000000 1709.00
      12 100094.00 1.0000000 288.0000000
      24 100357.00 1.0000000 295.0000000
  Diet Vanilla Cola 12 oz 1 502549.00 0 1542.00
      6 254852.00 0 694.0000000
      24 4889.00 0 15.0000000

Minimum and maximum Sales are within any county for any week



Chapter 3 Activities

Data for the next two graphs comes from the file "Non-Cola--NC,SC,GA.dat", which has information on the file structure contained in its header. Check the results of the file read for any errors or inconsistency in the data, and correct those issues.



The SGPlot Procedure



The SGPlot Procedure



Data for the next three graphs comes from the file "Energy--NC,SC,GA.txt", which has information on the file structure contained in its header. Check the results of the file read for any errors or inconsistency in the data, and correct those issues.



The SGPlot Procedure



The SGPlot Procedure



The SGPlot Procedure



Data for the next two graphs comes from the file "Other--NC,SC,GA.csv", which has information on the file structure contained in its header. Check the results of the file read for any errors or inconsistency in the data, and correct those issues. Graphs are built on summaries from the cleaned data.



The SGPlot Procedure



The SGPlot Procedure



Chapter 4 Activities

The Chapter 4 activities are based on data similar to that used in chapter 2, but from the remaining states of Maryland and Virginia, along with the District of Columbia. This data is contained in the files "ColaDCMDVA.sas7bdat" and "Counties--VA, MD, DC.csv".
 
In this data, product information is encoded in a single variable. Elements are separated by dashes, where the first element is a code for the product category [Sodas (S), Energy Drinks (E), or Other Types (O), with only S appearing in the data for this chapter]. The second element is a numeric code for the product type--for the cola products in this data they are: 1, Cola; 2, Diet Cola; 3, Cherry Cola; 4, Diet Cherry Cola; 5, Vanilla Cola; 6, Diet Vanilla Cola. Codes for other product types in future exercises, along with these, are located in the Appendix. The final two elements are the size and unit size, respectively.
 
So, for example, a code of S-3-20 oz-12 refers to 12 packs of 20 oz bottles of Cherry Cola
 



Activity 4.1
Weekly Sales Summaries
Cola Products, 20 oz Bottles, Individual Units

The MEANS Procedure

Analysis Variable : UnitsSold
region type Flavor Mean Median Lower Quartile Upper Quartile
North Diet Cherry Cola 168 52 27 129
    Cola 341 107 54 259
    Vanilla Cola 170 52 27 127
  Non-Diet Cherry Cola 488 151 78 358
    Cola 972 301 155 737
    Vanilla Cola 490 150 79 366
South Diet Cherry Cola 147 56 26 149
    Cola 294 113 52 298
    Vanilla Cola 147 56 25 150
  Non-Diet Cherry Cola 420 161 74 429
    Cola 846 320 146 868
    Vanilla Cola 420 160 73 428

All States



The SGPanel Procedure



The SGPanel Procedure



The SGPanel Procedure



The SGPanel Procedure



Chapter 5 Activities

The Chapter 5 activities are based on data similar to that used in chapter 3, but from the remaining states of Maryland and Virginia, along with the District of Columbia. This data is contained in the files "Non-Cola--DC-MD-VA.dat", "Energy--DC-MD-VA.txt", and "Other--DC-MD-VA.csv", plus the population data contained in "Counties--VA, MD, DC.csv".
Product codes are contained in the appendix.
 
The optional activity below summarizes various categorizations, which are used in subsequent activities through the remaining chapters, derived for the full set of beverage products,
 
Activities for this chapter (and the remaining chapters) can be completed by combining subsets of the given data; however, at this point your skills should be sufficient to combine all of the sales and population data into a single file that can be used for all remaining activities



Optional Activity
Product Information and Categorization

productName type ProductCategory ProductSubCategory Flavor size container
Big Zip-Berry Non-Diet Energy Big Zip Berry 16 oz Can
Big Zip-Berry Non-Diet Energy Big Zip Berry 8 oz Can
Big Zip-Grape Non-Diet Energy Big Zip Grape 16 oz Can
Big Zip-Grape Non-Diet Energy Big Zip Grape 8 oz Can
Diet Big Zip-Berry Diet Energy Big Zip Berry 16 oz Can
Diet Big Zip-Berry Diet Energy Big Zip Berry 8 oz Can
Diet Big Zip-Grape Diet Energy Big Zip Grape 16 oz Can
Diet Big Zip-Grape Diet Energy Big Zip Grape 8 oz Can
Diet Mega Zip-Berry Diet Energy Mega Zip Berry 16 oz Can
Diet Mega Zip-Orange Diet Energy Mega Zip Orange 16 oz Can
Mega Zip-Berry Non-Diet Energy Mega Zip Berry 16 oz Can
Mega Zip-Orange Non-Diet Energy Mega Zip Orange 16 oz Can
Diet Zip-Berry Diet Energy Zip Berry 16 oz Can
Diet Zip-Berry Diet Energy Zip Berry 8 oz Can
Diet Zip-Grape Diet Energy Zip Grape 16 oz Can
Diet Zip-Grape Diet Energy Zip Grape 8 oz Can
Diet Zip-Orange Diet Energy Zip Orange 16 oz Can
Diet Zip-Orange Diet Energy Zip Orange 8 oz Can
Zip-Berry Non-Diet Energy Zip Berry 16 oz Can
Zip-Berry Non-Diet Energy Zip Berry 8 oz Can
Zip-Grape Non-Diet Energy Zip Grape 16 oz Can
Zip-Grape Non-Diet Energy Zip Grape 8 oz Can
Zip-Orange Non-Diet Energy Zip Orange 16 oz Can
Zip-Orange Non-Diet Energy Zip Orange 8 oz Can
Non-Soda Ades-Diet Lemonade Diet Non-Soda Ades   Lemonade 2 liter Bottle
Non-Soda Ades-Diet Lemonade Diet Non-Soda Ades   Lemonade 20 oz Bottle
Non-Soda Ades-Diet Lemonade Diet Non-Soda Ades   Lemonade 12 oz Can
Non-Soda Ades-Diet Orangeade Diet Non-Soda Ades   Orangeade 2 liter Bottle
Non-Soda Ades-Diet Orangeade Diet Non-Soda Ades   Orangeade 20 oz Bottle
Non-Soda Ades-Diet Orangeade Diet Non-Soda Ades   Orangeade 12 oz Can
Non-Soda Ades-Lemonade Non-Diet Non-Soda Ades   Lemonade 2 liter Bottle
Non-Soda Ades-Lemonade Non-Diet Non-Soda Ades   Lemonade 20 oz Bottle
Non-Soda Ades-Lemonade Non-Diet Non-Soda Ades   Lemonade 12 oz Can
Non-Soda Ades-Orangeade Non-Diet Non-Soda Ades   Orangeade 2 liter Bottle
Non-Soda Ades-Orangeade Non-Diet Non-Soda Ades   Orangeade 20 oz Bottle
Non-Soda Ades-Orangeade Non-Diet Non-Soda Ades   Orangeade 12 oz Can
Diet Nutritional Water-Grape Diet Nutritional Water   Grape 20 oz Bottle
Diet Nutritional Water-Orange Diet Nutritional Water   Orange 20 oz Bottle
Nutritional Water-Grape Non-Diet Nutritional Water   Grape 20 oz Bottle
Nutritional Water-Orange Non-Diet Nutritional Water   Orange 20 oz Bottle
Cherry Cola Non-Diet Soda: Cola   Cherry Cola 1 liter Bottle
Cherry Cola Non-Diet Soda: Cola   Cherry Cola 2 liter Bottle
Cherry Cola Non-Diet Soda: Cola   Cherry Cola 20 oz Bottle
Cherry Cola Non-Diet Soda: Cola   Cherry Cola 12 oz Can
Cola Non-Diet Soda: Cola   Cola 1 liter Bottle
Cola Non-Diet Soda: Cola   Cola 2 liter Bottle
Cola Non-Diet Soda: Cola   Cola 20 oz Bottle
Cola Non-Diet Soda: Cola   Cola 12 oz Can
Diet Cherry Cola Diet Soda: Cola   Cherry Cola 1 liter Bottle
Diet Cherry Cola Diet Soda: Cola   Cherry Cola 2 liter Bottle
Diet Cherry Cola Diet Soda: Cola   Cherry Cola 20 oz Bottle
Diet Cherry Cola Diet Soda: Cola   Cherry Cola 12 oz Can
Diet Cola Diet Soda: Cola   Cola 1 liter Bottle
Diet Cola Diet Soda: Cola   Cola 2 liter Bottle
Diet Cola Diet Soda: Cola   Cola 20 oz Bottle
Diet Cola Diet Soda: Cola   Cola 12 oz Can
Diet Vanilla Cola Diet Soda: Cola   Vanilla Cola 2 liter Bottle
Diet Vanilla Cola Diet Soda: Cola   Vanilla Cola 20 oz Bottle
Diet Vanilla Cola Diet Soda: Cola   Vanilla Cola 12 oz Can
Vanilla Cola Non-Diet Soda: Cola   Vanilla Cola 2 liter Bottle
Vanilla Cola Non-Diet Soda: Cola   Vanilla Cola 20 oz Bottle
Vanilla Cola Non-Diet Soda: Cola   Vanilla Cola 12 oz Can
Citrus Splash Non-Diet Soda: Non-Cola   Citrus Splash 1 liter Bottle
Citrus Splash Non-Diet Soda: Non-Cola   Citrus Splash 2 liter Bottle
Citrus Splash Non-Diet Soda: Non-Cola   Citrus Splash 20 oz Bottle
Citrus Splash Non-Diet Soda: Non-Cola   Citrus Splash 12 oz Can
Diet Citrus Splash Diet Soda: Non-Cola   Citrus Splash 2 liter Bottle
Diet Citrus Splash Diet Soda: Non-Cola   Citrus Splash 20 oz Bottle
Diet Citrus Splash Diet Soda: Non-Cola   Citrus Splash 12 oz Can
Diet Grape Fizzy Diet Soda: Non-Cola   Grape Fizzy 2 liter Bottle
Diet Grape Fizzy Diet Soda: Non-Cola   Grape Fizzy 20 oz Bottle
Diet Grape Fizzy Diet Soda: Non-Cola   Grape Fizzy 12 oz Can
Diet Lemon-Lime Diet Soda: Non-Cola   Lemon-Lime 2 liter Bottle
Diet Lemon-Lime Diet Soda: Non-Cola   Lemon-Lime 20 oz Bottle
Diet Lemon-Lime Diet Soda: Non-Cola   Lemon-Lime 12 oz Can
Diet Orange Fizzy Diet Soda: Non-Cola   Orange Fizzy 2 liter Bottle
Diet Orange Fizzy Diet Soda: Non-Cola   Orange Fizzy 20 oz Bottle
Diet Orange Fizzy Diet Soda: Non-Cola   Orange Fizzy 12 oz Can
Diet Professor Zesty Diet Soda: Non-Cola   Professor Zesty 1 liter Bottle
Diet Professor Zesty Diet Soda: Non-Cola   Professor Zesty 2 liter Bottle
Diet Professor Zesty Diet Soda: Non-Cola   Professor Zesty 20 oz Bottle
Diet Professor Zesty Diet Soda: Non-Cola   Professor Zesty 12 oz Can
Grape Fizzy Non-Diet Soda: Non-Cola   Grape Fizzy 1 liter Bottle
Grape Fizzy Non-Diet Soda: Non-Cola   Grape Fizzy 2 liter Bottle
Grape Fizzy Non-Diet Soda: Non-Cola   Grape Fizzy 20 oz Bottle
Grape Fizzy Non-Diet Soda: Non-Cola   Grape Fizzy 12 oz Can
Lemon-Lime Non-Diet Soda: Non-Cola   Lemon-Lime 1 liter Bottle
Lemon-Lime Non-Diet Soda: Non-Cola   Lemon-Lime 2 liter Bottle
Lemon-Lime Non-Diet Soda: Non-Cola   Lemon-Lime 20 oz Bottle
Lemon-Lime Non-Diet Soda: Non-Cola   Lemon-Lime 12 oz Can
Orange Fizzy Non-Diet Soda: Non-Cola   Orange Fizzy 1 liter Bottle
Orange Fizzy Non-Diet Soda: Non-Cola   Orange Fizzy 2 liter Bottle
Orange Fizzy Non-Diet Soda: Non-Cola   Orange Fizzy 20 oz Bottle
Orange Fizzy Non-Diet Soda: Non-Cola   Orange Fizzy 12 oz Can
Professor Zesty Non-Diet Soda: Non-Cola   Professor Zesty 1 liter Bottle
Professor Zesty Non-Diet Soda: Non-Cola   Professor Zesty 2 liter Bottle
Professor Zesty Non-Diet Soda: Non-Cola   Professor Zesty 20 oz Bottle
Professor Zesty Non-Diet Soda: Non-Cola   Professor Zesty 12 oz Can



Activity 5.1
Correlations: County Population vs Total Sales for 2016
Berry-Flavored Energy Drinks, Sold as Single-Units

The CORR Procedure

type=Diet ProductSubCategory=Big Zip Container Size=16 oz

Pearson Correlation Coefficients, N = 422
Prob > |r| under H0: Rho=0
  CountyPop2016
TotalSales
Total Units Sold
0.99461
<.0001

All Counties in All States (Including the District of Columbia)



Activity 5.1
Correlations: County Population vs Total Sales for 2016
Berry-Flavored Energy Drinks, Sold as Single-Units

The CORR Procedure

type=Diet ProductSubCategory=Big Zip Container Size=8 oz

Pearson Correlation Coefficients, N = 422
Prob > |r| under H0: Rho=0
  CountyPop2016
TotalSales
Total Units Sold
0.99350
<.0001

All Counties in All States (Including the District of Columbia)



Activity 5.1
Correlations: County Population vs Total Sales for 2016
Berry-Flavored Energy Drinks, Sold as Single-Units

The CORR Procedure

type=Diet ProductSubCategory=Mega Zip Container Size=16 oz

Pearson Correlation Coefficients, N = 422
Prob > |r| under H0: Rho=0
  CountyPop2016
TotalSales
Total Units Sold
0.99404
<.0001

All Counties in All States (Including the District of Columbia)



Activity 5.1
Correlations: County Population vs Total Sales for 2016
Berry-Flavored Energy Drinks, Sold as Single-Units

The CORR Procedure

type=Diet ProductSubCategory=Zip Container Size=16 oz

Pearson Correlation Coefficients, N = 422
Prob > |r| under H0: Rho=0
  CountyPop2016
TotalSales
Total Units Sold
0.99470
<.0001

All Counties in All States (Including the District of Columbia)



Activity 5.1
Correlations: County Population vs Total Sales for 2016
Berry-Flavored Energy Drinks, Sold as Single-Units

The CORR Procedure

type=Diet ProductSubCategory=Zip Container Size=8 oz

Pearson Correlation Coefficients, N = 422
Prob > |r| under H0: Rho=0
  CountyPop2016
TotalSales
Total Units Sold
0.99255
<.0001

All Counties in All States (Including the District of Columbia)



Activity 5.1
Correlations: County Population vs Total Sales for 2016
Berry-Flavored Energy Drinks, Sold as Single-Units

The CORR Procedure

type=Non-Diet ProductSubCategory=Big Zip Container Size=16 oz

Pearson Correlation Coefficients, N = 422
Prob > |r| under H0: Rho=0
  CountyPop2016
TotalSales
Total Units Sold
0.99380
<.0001

All Counties in All States (Including the District of Columbia)



Activity 5.1
Correlations: County Population vs Total Sales for 2016
Berry-Flavored Energy Drinks, Sold as Single-Units

The CORR Procedure

type=Non-Diet ProductSubCategory=Big Zip Container Size=8 oz

Pearson Correlation Coefficients, N = 422
Prob > |r| under H0: Rho=0
  CountyPop2016
TotalSales
Total Units Sold
0.99437
<.0001

All Counties in All States (Including the District of Columbia)



Activity 5.1
Correlations: County Population vs Total Sales for 2016
Berry-Flavored Energy Drinks, Sold as Single-Units

The CORR Procedure

type=Non-Diet ProductSubCategory=Mega Zip Container Size=16 oz

Pearson Correlation Coefficients, N = 422
Prob > |r| under H0: Rho=0
  CountyPop2016
TotalSales
Total Units Sold
0.99481
<.0001

All Counties in All States (Including the District of Columbia)



Activity 5.1
Correlations: County Population vs Total Sales for 2016
Berry-Flavored Energy Drinks, Sold as Single-Units

The CORR Procedure

type=Non-Diet ProductSubCategory=Zip Container Size=16 oz

Pearson Correlation Coefficients, N = 422
Prob > |r| under H0: Rho=0
  CountyPop2016
TotalSales
Total Units Sold
0.99394
<.0001

All Counties in All States (Including the District of Columbia)



Activity 5.1
Correlations: County Population vs Total Sales for 2016
Berry-Flavored Energy Drinks, Sold as Single-Units

The CORR Procedure

type=Non-Diet ProductSubCategory=Zip Container Size=8 oz

Pearson Correlation Coefficients, N = 422
Prob > |r| under H0: Rho=0
  CountyPop2016
TotalSales
Total Units Sold
0.99564
<.0001

All Counties in All States (Including the District of Columbia)



The SGPlot Procedure



The SGPanel Procedure



Activity 5.4
Correlations of Weekly Sales
12 oz, Single-Unit
Non-diet, Cola Flavor

The CORR Procedure

Pearson Correlation Coefficients, N = 53
Prob > |r| under H0: Rho=0
  District of Columbia Georgia Maryland North Carolina South Carolina Virginia
District of Columbia
1.00000
 
0.61907
<.0001
0.56786
<.0001
0.60755
<.0001
0.63849
<.0001
0.54724
<.0001
Georgia
0.61907
<.0001
1.00000
 
0.90076
<.0001
0.93988
<.0001
0.94644
<.0001
0.90085
<.0001
Maryland
0.56786
<.0001
0.90076
<.0001
1.00000
 
0.88073
<.0001
0.91098
<.0001
0.88580
<.0001
North Carolina
0.60755
<.0001
0.93988
<.0001
0.88073
<.0001
1.00000
 
0.94500
<.0001
0.89326
<.0001
South Carolina
0.63849
<.0001
0.94644
<.0001
0.91098
<.0001
0.94500
<.0001
1.00000
 
0.91325
<.0001
Virginia
0.54724
<.0001
0.90085
<.0001
0.88580
<.0001
0.89326
<.0001
0.91325
<.0001
1.00000
 



The SGPanel Procedure



Chapter 6 Activities

The Chapter 6 activities are based on the full data given in the previous chapters--no new data is required for these activities.



The SGPlot Procedure



Activity 6.2
Quarterly Sales Summaries for 12oz Single-Unit Products
Maryland Only

Product Type Name Quarter Median Weekly Sales Total Sales Lowest Weekly Sales Highest Weekly Sales
Diet Diet Cherry Cola I 143 92,173 0 1,959
    II 204 127,258 25 2,559
    III 199 139,257 25 2,238
    IV 141 93,187 12 2,184
      167 451,875 0 2,559
  Diet Citrus Splash I 213 135,092 14 3,057
    II 302 188,427 38 3,577
    III 305 206,656 38 3,635
    IV 211 134,799 16 3,032
      257 664,974 14 3,635
  Diet Cola I 271 189,822 21 3,740
    II 385 256,914 48 4,978
    III 394 277,733 48 5,043
    IV 267 176,170 32 3,658
      333 900,639 21 5,043
  Diet Grape Fizzy I 209 136,490 0 3,390
    II 294 190,292 37 3,530
    III 309 204,069 22 3,898
    IV 210 134,717 20 2,823
      253 665,568 0 3,898
  Diet Lemon-Lime I 211 135,355 10 2,865
    II 303 184,446 32 3,499
    III 304 208,253 41 5,106
    IV 217 138,881 0 2,663
      251 666,935 0 5,106
  Diet Orange Fizzy I 202 139,008 4 2,697
    II 300 189,683 37 4,125
    III 308 210,086 33 3,801
    IV 199 141,404 9 2,800
      246 680,181 4 4,125
  Diet Professor Zesty I 205 138,308 21 3,254
    II 298 193,855 39 3,796
    III 294 210,341 37 3,751
    IV 205 135,196 16 3,394
      249 677,700 16 3,796
  Diet Vanilla Cola I 143 91,463 14 2,067
    II 196 131,571 15 2,587
    III 213 140,082 22 2,342
    IV 139 95,661 7 2,217
      169 458,777 7 2,587
  Non-Soda Ades-Diet Lemonade I 60 39,092 3 931
    II 86 51,459 11 908
    III 87 60,877 13 1,049
    IV 59 40,173 5 923
      72 191,601 3 1,049
  Non-Soda Ades-Diet Orangeade I 66 41,028 5 999
    II 82 54,665 9 1,149
    III 78 59,895 11 1,262
    IV 65 40,481 0 1,028
      72 196,069 0 1,262
Non-Diet Cherry Cola I 408 274,640 0 6,617
    II 522 366,913 56 7,008
    III 603 392,103 64 7,747
    IV 404 263,374 0 5,758
      485 1297030 0 7,747
  Citrus Splash I 396 264,372 34 5,443
    II 575 366,881 68 6,564
    III 564 403,496 78 7,377
    IV 410 268,953 39 6,177
      477 1303702 34 7,377
  Cola I 740 520,138 45 11,230
    II 1,123 739,386 154 14,846
    III 1,178 805,538 123 15,960
    IV 802 532,732 41 11,341
      914 2597794 41 15,960
  Grape Fizzy I 375 256,214 23 6,107
    II 629 376,409 69 7,620
    III 571 404,223 62 8,280
    IV 401 266,845 22 5,590
      475 1303691 22 8,280
  Lemon-Lime I 396 262,809 22 6,125
    II 568 358,788 62 6,645
    III 541 405,130 64 7,770
    IV 397 261,703 49 5,390
      461 1288430 22 7,770
  Non-Soda Ades-Lemonade I 257 160,645 29 3,783
    II 333 226,750 43 4,630
    III 341 234,411 41 4,118
    IV 236 159,314 18 3,219
      293 781,120 18 4,630
  Non-Soda Ades-Orangeade I 76 51,265 7 1,206
    II 116 72,234 17 1,358
    III 105 77,081 14 1,530
    IV 76 53,818 7 1,179
      91 254,398 7 1,530
  Orange Fizzy I 369 269,103 9 5,863
    II 591 365,600 66 6,697
    III 566 403,207 70 8,530
    IV 413 258,041 23 6,201
      479 1295951 9 8,530
  Professor Zesty I 396 267,872 0 6,931
    II 573 371,589 74 7,075
    III 574 393,371 67 7,626
    IV 392 273,860 34 6,496
      474 1306692 0 7,626
  Vanilla Cola I 411 276,462 37 5,591
    II 566 363,391 58 7,768
    III 580 401,022 57 6,764
    IV 382 259,468 40 4,886
      489 1300343 37 7,768



Activity 6.3
Quarterly Sales Summaries for 12oz Single-Unit Products
Carolinas

Product Type Name Quarter North Carolina South Carolina Overall Sales
Diet Diet Cherry Cola I 206,054 100,953 307,007
    II 283,915 142,580 426,495
    III 311,254 155,461 466,715
    IV 212,954 103,997 316,951
      1,014,177 502,991 1,517,168
  Diet Citrus Splash I 301,379 152,577 453,956
    II 428,391 215,831 644,222
    III 463,501 230,770 694,271
    IV 311,080 151,437 462,517
      1,504,351 750,615 2,254,966
  Diet Cola I 412,299 200,857 613,156
    II 580,590 282,223 862,813
    III 616,225 307,542 923,767
    IV 416,309 211,429 627,738
      2,025,423 1,002,051 3,027,474
  Diet Grape Fizzy I 315,057 154,571 469,628
    II 427,407 211,041 638,448
    III 465,664 229,616 695,280
    IV 312,894 154,319 467,213
      1,521,022 749,547 2,270,569
  Diet Lemon-Lime I 307,438 156,553 463,991
    II 424,298 212,496 636,794
    III 467,087 228,695 695,782
    IV 308,998 148,563 457,561
      1,507,821 746,307 2,254,128
  Diet Orange Fizzy I 306,396 150,137 456,533
    II 432,471 214,318 646,789
    III 462,512 228,417 690,929
    IV 308,207 154,750 462,957
      1,509,586 747,622 2,257,208
  Diet Professor Zesty I 311,069 152,492 463,561
    II 430,606 209,950 640,556
    III 457,989 229,826 687,815
    IV 300,932 158,054 458,986
      1,500,596 750,322 2,250,918
  Diet Vanilla Cola I 209,211 103,494 312,705
    II 288,013 139,255 427,268
    III 309,653 157,684 467,337
    IV 207,746 102,116 309,862
      1,014,623 502,549 1,517,172
  Non-Soda Ades-Diet Lemonade I 90,177 45,496 135,673
    II 122,864 60,903 183,767
    III 135,770 67,407 203,177
    IV 88,045 45,048 133,093
      436,856 218,854 655,710
  Non-Soda Ades-Diet Orangeade I 89,801 44,508 134,309
    II 122,589 61,099 183,688
    III 132,500 66,527 199,027
    IV 89,512 43,576 133,088
      434,402 215,710 650,112
Non-Diet Cherry Cola I 595,072 291,937 887,009
    II 833,946 409,896 1,243,842
    III 888,990 445,877 1,334,867
    IV 604,319 293,090 897,409
      2,922,327 1,440,800 4,363,127
  Citrus Splash I 594,664 300,420 895,084
    II 816,869 400,263 1,217,132
    III 890,726 443,901 1,334,627
    IV 601,339 307,397 908,736
      2,903,598 1,451,981 4,355,579
  Cola I 1,215,706 570,713 1,786,419
    II 1,655,677 809,712 2,465,389
    III 1,743,742 892,132 2,635,874
    IV 1,217,836 588,748 1,806,584
      5,832,961 2,861,305 8,694,266
  Grape Fizzy I 586,668 301,964 888,632
    II 829,046 413,473 1,242,519
    III 901,921 441,694 1,343,615
    IV 583,048 299,319 882,367
      2,900,683 1,456,450 4,357,133
  Lemon-Lime I 591,161 289,484 880,645
    II 808,501 410,558 1,219,059
    III 893,400 442,211 1,335,611
    IV 600,970 296,294 897,264
      2,894,032 1,438,547 4,332,579
  Non-Soda Ades-Lemonade I 357,841 176,835 534,676
    II 492,603 244,930 737,533
    III 532,926 263,513 796,439
    IV 358,299 182,276 540,575
      1,741,669 867,554 2,609,223
  Non-Soda Ades-Orangeade I 114,472 60,966 175,438
    II 162,922 80,518 243,440
    III 177,209 88,139 265,348
    IV 116,744 59,146 175,890
      571,347 288,769 860,116
  Orange Fizzy I 594,278 293,761 888,039
    II 812,059 409,875 1,221,934
    III 893,486 443,522 1,337,008
    IV 599,032 299,072 898,104
      2,898,855 1,446,230 4,345,085
  Professor Zesty I 601,043 288,761 889,804
    II 821,239 417,418 1,238,657
    III 895,927 441,654 1,337,581
    IV 603,891 302,984 906,875
      2,922,100 1,450,817 4,372,917
  Vanilla Cola I 587,321 304,037 891,358
    II 832,658 411,212 1,243,870
    III 884,914 442,484 1,327,398
    IV 594,033 307,497 901,530
      2,898,926 1,465,230 4,364,156



Chapter 7 Activities, Part I: Activities 7.1 - 7.3

The first three activities for Chapter 7 are to make the appendix tables via reading from raw files:
 
Activity 7.1, from "Sodas.csv" create:
 
Activity 7.2, from "Energy.csv" create:
 
Activity 7.3, from "Other.txt" create:
 
Each of these files has a challeging structure, and the codes must be constructed during processing, they are not part of the raw file.



Chapter 7 Activities, Part II

Activities 7.4 and 7.5 are based on the full data given in the previous chapters--no new data is required for these activities.



Activity 7.4
Quarterly Sales Summaries for 12oz Single-Unit Products
Maryland Only

Product Type Name Quarter Median Weekly Sales Total Sales Lowest Weekly Sales Highest Weekly Sales
Diet Diet Cherry Cola I 143 92,173 0 1,959
    II 204 127,258 25 2,559
    III 199 139,257 25 2,238
    IV 141 93,187 12 2,184
      167 451,875 0 2,559
  Diet Citrus Splash I 213 135,092 14 3,057
    II 302 188,427 38 3,577
    III 305 206,656 38 3,635
    IV 211 134,799 16 3,032
      257 664,974 14 3,635
  Diet Cola I 271 189,822 21 3,740
    II 385 256,914 48 4,978
    III 394 277,733 48 5,043
    IV 267 176,170 32 3,658
      333 900,639 21 5,043
  Diet Grape Fizzy I 209 136,490 0 3,390
    II 294 190,292 37 3,530
    III 309 204,069 22 3,898
    IV 210 134,717 20 2,823
      253 665,568 0 3,898
  Diet Lemon-Lime I 211 135,355 10 2,865
    II 303 184,446 32 3,499
    III 304 208,253 41 5,106
    IV 217 138,881 0 2,663
      251 666,935 0 5,106
  Diet Orange Fizzy I 202 139,008 4 2,697
    II 300 189,683 37 4,125
    III 308 210,086 33 3,801
    IV 199 141,404 9 2,800
      246 680,181 4 4,125
  Diet Professor Zesty I 205 138,308 21 3,254
    II 298 193,855 39 3,796
    III 294 210,341 37 3,751
    IV 205 135,196 16 3,394
      249 677,700 16 3,796
  Diet Vanilla Cola I 143 91,463 14 2,067
    II 196 131,571 15 2,587
    III 213 140,082 22 2,342
    IV 139 95,661 7 2,217
      169 458,777 7 2,587
  Non-Soda Ades-Diet Lemonade I 60 39,092 3 931
    II 86 51,459 11 908
    III 87 60,877 13 1,049
    IV 59 40,173 5 923
      72 191,601 3 1,049
  Non-Soda Ades-Diet Orangeade I 66 41,028 5 999
    II 82 54,665 9 1,149
    III 78 59,895 11 1,262
    IV 65 40,481 0 1,028
      72 196,069 0 1,262
Non-Diet Cherry Cola I 408 274,640 0 6,617
    II 522 366,913 56 7,008
    III 603 392,103 64 7,747
    IV 404 263,374 0 5,758
      485 1297030 0 7,747
  Citrus Splash I 396 264,372 34 5,443
    II 575 366,881 68 6,564
    III 564 403,496 78 7,377
    IV 410 268,953 39 6,177
      477 1303702 34 7,377
  Cola I 740 520,138 45 11,230
    II 1,123 739,386 154 14,846
    III 1,178 805,538 123 15,960
    IV 802 532,732 41 11,341
      914 2597794 41 15,960
  Grape Fizzy I 375 256,214 23 6,107
    II 629 376,409 69 7,620
    III 571 404,223 62 8,280
    IV 401 266,845 22 5,590
      475 1303691 22 8,280
  Lemon-Lime I 396 262,809 22 6,125
    II 568 358,788 62 6,645
    III 541 405,130 64 7,770
    IV 397 261,703 49 5,390
      461 1288430 22 7,770
  Non-Soda Ades-Lemonade I 257 160,645 29 3,783
    II 333 226,750 43 4,630
    III 341 234,411 41 4,118
    IV 236 159,314 18 3,219
      293 781,120 18 4,630
  Non-Soda Ades-Orangeade I 76 51,265 7 1,206
    II 116 72,234 17 1,358
    III 105 77,081 14 1,530
    IV 76 53,818 7 1,179
      91 254,398 7 1,530
  Orange Fizzy I 369 269,103 9 5,863
    II 591 365,600 66 6,697
    III 566 403,207 70 8,530
    IV 413 258,041 23 6,201
      479 1295951 9 8,530
  Professor Zesty I 396 267,872 0 6,931
    II 573 371,589 74 7,075
    III 574 393,371 67 7,626
    IV 392 273,860 34 6,496
      474 1306692 0 7,626
  Vanilla Cola I 411 276,462 37 5,591
    II 566 363,391 58 7,768
    III 580 401,022 57 6,764
    IV 382 259,468 40 4,886
      489 1300343 37 7,768



Activity 7.5
Quarterly Per-Capita Sales Summaries
12oz Single-Unit Lemonade
Maryland Only

County Product Type Quarter Total Sales Sales per 1000
Allegany Diet I 503 7.0
    II 746 10.3
    III 800 11.1
    IV 542 7.5
  Non-Diet I 2,035 28.2
    II 2,797 38.7
    III 3,007 41.7
    IV 1,754 24.3
      12,184 168.8
2016 Population:     72,194
Anne Arundel Diet I 4,102 7.2
    II 5,683 10.0
    III 6,083 10.7
    IV 3,765 6.6
  Non-Diet I 19,605 34.5
    II 19,596 34.4
    III 24,607 43.3
    IV 15,207 26.7
      98,648 173.4
2016 Population:    568,916
Baltimore Diet I 5,530 6.7
    II 7,356 8.8
    III 10,048 12.1
    IV 7,071 8.5
  Non-Diet I 22,422 27.0
    II 37,143 44.7
    III 35,833 43.1
    IV 22,917 27.6
      148,320 178.4
2016 Population:    831,431
Calvert Diet I 773 8.5
    II 962 10.6
    III 972 10.7
    IV 593 6.5
  Non-Diet I 2,842 31.2
    II 3,682 40.4
    III 3,707 40.7
    IV 2,733 30.0
      16,264 178.5
2016 Population:     91,099
Caroline Diet I 275 8.4
    II 363 11.0
    III 396 12.0
    IV 262 8.0
  Non-Diet I 1,148 34.9
    II 1,421 43.2
    III 1,574 47.9
    IV 1,043 31.7
      6,482 197.1
2016 Population:     32,887
Carroll Diet I 947 5.7
    II 1,624 9.7
    III 1,996 11.9
    IV 1,199 7.2
  Non-Diet I 4,935 29.5
    II 6,439 38.5
    III 6,459 38.6
    IV 4,572 27.4
      28,171 168.5
2016 Population:    167,140
Cecil Diet I 752 7.3
    II 1,103 10.7
    III 1,281 12.5
    IV 810 7.9
  Non-Diet I 3,122 30.4
    II 4,480 43.6
    III 4,741 46.2
    IV 3,452 33.6
      19,741 192.2
2016 Population:    102,701
Charles Diet I 1,019 6.5
    II 1,760 11.2
    III 1,569 10.0
    IV 1,268 8.1
  Non-Diet I 4,859 30.9
    II 6,919 43.9
    III 6,654 42.3
    IV 4,869 30.9
      28,917 183.7
2016 Population:    157,430
Dorchester Diet I 260 8.1
    II 354 11.0
    III 398 12.3
    IV 261 8.1
  Non-Diet I 997 30.9
    II 1,536 47.6
    III 1,677 52.0
    IV 1,152 35.7
      6,635 205.6
2016 Population:     32,267
Frederick Diet I 1,950 7.9
    II 2,674 10.8
    III 2,558 10.3
    IV 1,856 7.5
  Non-Diet I 7,854 31.7
    II 10,166 41.0
    III 11,697 47.2
    IV 7,753 31.3
      46,508 187.6
2016 Population:    247,881
Garrett Diet I 184 6.3
    II 318 10.8
    III 298 10.2
    IV 211 7.2
  Non-Diet I 890 30.3
    II 1,237 42.2
    III 1,324 45.1
    IV 734 25.0
      5,196 177.1
2016 Population:     29,344
Harford Diet I 1,774 7.1
    II 2,294 9.2
    III 2,816 11.2
    IV 1,974 7.9
  Non-Diet I 6,894 27.5
    II 10,880 43.4
    III 10,750 42.9
    IV 7,620 30.4
      45,002 179.7
2016 Population:    250,439
Howard Diet I 2,285 7.2
    II 2,910 9.2
    III 4,000 12.6
    IV 2,299 7.3
  Non-Diet I 9,056 28.6
    II 12,767 40.3
    III 15,053 47.5
    IV 8,798 27.8
      57,168 180.4
2016 Population:    316,966
Kent Diet I 141 7.2
    II 204 10.4
    III 235 12.0
    IV 155 7.9
  Non-Diet I 663 33.7
    II 836 42.5
    III 907 46.1
    IV 638 32.5
      3,779 192.3
2016 Population:     19,654
Montgomery Diet I 7,736 7.4
    II 8,989 8.6
    III 11,107 10.6
    IV 7,335 7.0
  Non-Diet I 28,356 27.0
    II 47,963 45.8
    III 42,449 40.5
    IV 30,191 28.8
      184,126 175.6
2016 Population:  1,048,332
Prince George's Diet I 6,892 7.6
    II 8,657 9.5
    III 10,383 11.4
    IV 6,365 7.0
  Non-Diet I 28,785 31.6
    II 36,295 39.8
    III 40,057 44.0
    IV 29,512 32.4
      166,946 183.2
2016 Population:    911,154
Queen Anne's Diet I 413 8.4
    II 503 10.2
    III 588 12.0
    IV 388 7.9
  Non-Diet I 1,414 28.8
    II 2,259 45.9
    III 2,478 50.4
    IV 1,723 35.0
      9,766 198.6
2016 Population:     49,178
Somerset Diet I 212 8.2
    II 322 12.5
    III 306 11.8
    IV 226 8.7
  Non-Diet I 871 33.7
    II 1,268 49.1
    III 1,289 49.9
    IV 786 30.4
      5,280 204.4
2016 Population:     25,833
St. Mary's Diet I 863 7.7
    II 1,126 10.1
    III 1,292 11.6
    IV 946 8.5
  Non-Diet I 3,472 31.0
    II 4,867 43.5
    III 4,901 43.8
    IV 3,672 32.8
      21,139 189.0
2016 Population:    111,835
Talbot Diet I 278 7.5
    II 353 9.5
    III 450 12.1
    IV 287 7.7
  Non-Diet I 1,004 27.0
    II 1,574 42.3
    III 1,717 46.2
    IV 1,187 31.9
      6,850 184.1
2016 Population:     37,204
Washington Diet I 1,005 6.7
    II 1,538 10.3
    III 1,417 9.5
    IV 1,113 7.4
  Non-Diet I 4,336 28.9
    II 6,103 40.7
    III 5,928 39.6
    IV 4,347 29.0
      25,787 172.1
2016 Population:    149,810
Wicomico Diet I 837 8.2
    II 1,042 10.2
    III 1,304 12.7
    IV 785 7.7
  Non-Diet I 3,177 31.0
    II 4,235 41.3
    III 5,026 49.0
    IV 3,267 31.8
      19,673 191.8
2016 Population:    102,585
Worcester Diet I 361 7.0
    II 578 11.2
    III 580 11.3
    IV 462 9.0
  Non-Diet I 1,908 37.0
    II 2,287 44.4
    III 2,576 50.0
    IV 1,387 26.9
      10,139 196.8
2016 Population:     51,514

Flagged Rows: Sales Less Than 7.5 per 1000 for Diet; Less Than 30 per 1000 for Non-Diet



Chapter 7 Activities, Part III

The file 2016Data.accdb contains the complete data given for this case study previously as SAS and raw files in a Microsoft Access format. Connect to this file using the appropriate engine and verify that you can reconstruct any of the graphs or tables constructed in for Chapters 2 through 6 and activities 7.4 and 7.5



Appendix

Tables of Product Codes



Product Code Mapping for Sodas
Created in Activity 7.1

Product
Number
Product Name Individual Container
Size
Retail Unit Size Product Code
1 Cola 12 oz 1 S-1-12 oz-1
1 Cola 20 oz 1 S-1-20 oz-1
1 Cola 1 liter 1 S-1-1 liter-1
1 Cola 2 liter 1 S-1-2 liter-1
1 Cola 12 oz 6 S-1-12 oz-6
1 Cola 12 oz 12 S-1-12 oz-12
1 Cola 12 oz 24 S-1-12 oz-24
1 Cola 20 oz 8 S-1-20 oz-8
1 Cola 20 oz 12 S-1-20 oz-12
2 Diet Cola 12 oz 1 S-2-12 oz-1
2 Diet Cola 20 oz 1 S-2-20 oz-1
2 Diet Cola 1 liter 1 S-2-1 liter-1
2 Diet Cola 2 liter 1 S-2-2 liter-1
2 Diet Cola 12 oz 6 S-2-12 oz-6
2 Diet Cola 12 oz 12 S-2-12 oz-12
2 Diet Cola 12 oz 24 S-2-12 oz-24
2 Diet Cola 20 oz 8 S-2-20 oz-8
2 Diet Cola 20 oz 12 S-2-20 oz-12
3 Cherry Cola 12 oz 1 S-3-12 oz-1
3 Cherry Cola 20 oz 1 S-3-20 oz-1
3 Cherry Cola 1 liter 1 S-3-1 liter-1
3 Cherry Cola 2 liter 1 S-3-2 liter-1
3 Cherry Cola 12 oz 6 S-3-12 oz-6
3 Cherry Cola 12 oz 12 S-3-12 oz-12
3 Cherry Cola 12 oz 24 S-3-12 oz-24
3 Cherry Cola 20 oz 8 S-3-20 oz-8
3 Cherry Cola 20 oz 12 S-3-20 oz-12
4 Diet Cherry Cola 12 oz 1 S-4-12 oz-1
4 Diet Cherry Cola 20 oz 1 S-4-20 oz-1
4 Diet Cherry Cola 1 liter 1 S-4-1 liter-1
4 Diet Cherry Cola 2 liter 1 S-4-2 liter-1
4 Diet Cherry Cola 12 oz 6 S-4-12 oz-6
4 Diet Cherry Cola 12 oz 12 S-4-12 oz-12
4 Diet Cherry Cola 12 oz 24 S-4-12 oz-24
4 Diet Cherry Cola 20 oz 8 S-4-20 oz-8
4 Diet Cherry Cola 20 oz 12 S-4-20 oz-12
5 Vanilla Cola 12 oz 1 S-5-12 oz-1
5 Vanilla Cola 20 oz 1 S-5-20 oz-1
5 Vanilla Cola 2 liter 1 S-5-2 liter-1
5 Vanilla Cola 12 oz 6 S-5-12 oz-6
5 Vanilla Cola 12 oz 24 S-5-12 oz-24
5 Vanilla Cola 20 oz 8 S-5-20 oz-8
6 Diet Vanilla Cola 12 oz 1 S-6-12 oz-1
6 Diet Vanilla Cola 20 oz 1 S-6-20 oz-1
6 Diet Vanilla Cola 2 liter 1 S-6-2 liter-1
6 Diet Vanilla Cola 12 oz 6 S-6-12 oz-6
6 Diet Vanilla Cola 12 oz 24 S-6-12 oz-24
6 Diet Vanilla Cola 20 oz 8 S-6-20 oz-8
7 Professor Zesty 12 oz 1 S-7-12 oz-1
7 Professor Zesty 20 oz 1 S-7-20 oz-1
7 Professor Zesty 1 liter 1 S-7-1 liter-1
7 Professor Zesty 2 liter 1 S-7-2 liter-1
7 Professor Zesty 12 oz 6 S-7-12 oz-6
7 Professor Zesty 12 oz 12 S-7-12 oz-12
7 Professor Zesty 12 oz 24 S-7-12 oz-24
7 Professor Zesty 20 oz 8 S-7-20 oz-8
7 Professor Zesty 20 oz 12 S-7-20 oz-12
8 Diet Professor Zesty 12 oz 1 S-8-12 oz-1
8 Diet Professor Zesty 20 oz 1 S-8-20 oz-1
8 Diet Professor Zesty 1 liter 1 S-8-1 liter-1
8 Diet Professor Zesty 2 liter 1 S-8-2 liter-1
8 Diet Professor Zesty 12 oz 6 S-8-12 oz-6
8 Diet Professor Zesty 12 oz 12 S-8-12 oz-12
8 Diet Professor Zesty 12 oz 24 S-8-12 oz-24
8 Diet Professor Zesty 20 oz 8 S-8-20 oz-8
8 Diet Professor Zesty 20 oz 12 S-8-20 oz-12
9 Citrus Splash 12 oz 1 S-9-12 oz-1
9 Citrus Splash 20 oz 1 S-9-20 oz-1
9 Citrus Splash 1 liter 1 S-9-1 liter-1
9 Citrus Splash 2 liter 1 S-9-2 liter-1
9 Citrus Splash 12 oz 6 S-9-12 oz-6
9 Citrus Splash 12 oz 12 S-9-12 oz-12
9 Citrus Splash 12 oz 24 S-9-12 oz-24
9 Citrus Splash 20 oz 8 S-9-20 oz-8
9 Citrus Splash 20 oz 12 S-9-20 oz-12
10 Diet Citrus Splash 12 oz 1 S-10-12 oz-1
10 Diet Citrus Splash 20 oz 1 S-10-20 oz-1
10 Diet Citrus Splash 2 liter 1 S-10-2 liter-1
10 Diet Citrus Splash 12 oz 6 S-10-12 oz-6
10 Diet Citrus Splash 12 oz 24 S-10-12 oz-24
10 Diet Citrus Splash 20 oz 8 S-10-20 oz-8
11 Lemon-Lime 12 oz 1 S-11-12 oz-1
11 Lemon-Lime 20 oz 1 S-11-20 oz-1
11 Lemon-Lime 1 liter 1 S-11-1 liter-1
11 Lemon-Lime 2 liter 1 S-11-2 liter-1
11 Lemon-Lime 12 oz 6 S-11-12 oz-6
11 Lemon-Lime 12 oz 12 S-11-12 oz-12
11 Lemon-Lime 12 oz 24 S-11-12 oz-24
11 Lemon-Lime 20 oz 8 S-11-20 oz-8
11 Lemon-Lime 20 oz 12 S-11-20 oz-12
12 Diet Lemon-Lime 12 oz 1 S-12-12 oz-1
12 Diet Lemon-Lime 20 oz 1 S-12-20 oz-1
12 Diet Lemon-Lime 2 liter 1 S-12-2 liter-1
12 Diet Lemon-Lime 12 oz 6 S-12-12 oz-6
12 Diet Lemon-Lime 12 oz 24 S-12-12 oz-24
12 Diet Lemon-Lime 20 oz 8 S-12-20 oz-8
13 Orange Fizzy 12 oz 1 S-13-12 oz-1
13 Orange Fizzy 20 oz 1 S-13-20 oz-1
13 Orange Fizzy 1 liter 1 S-13-1 liter-1
13 Orange Fizzy 2 liter 1 S-13-2 liter-1
13 Orange Fizzy 12 oz 6 S-13-12 oz-6
13 Orange Fizzy 12 oz 12 S-13-12 oz-12
13 Orange Fizzy 12 oz 24 S-13-12 oz-24
13 Orange Fizzy 20 oz 8 S-13-20 oz-8
13 Orange Fizzy 20 oz 12 S-13-20 oz-12
14 Diet Orange Fizzy 12 oz 1 S-14-12 oz-1
14 Diet Orange Fizzy 20 oz 1 S-14-20 oz-1
14 Diet Orange Fizzy 2 liter 1 S-14-2 liter-1
14 Diet Orange Fizzy 12 oz 6 S-14-12 oz-6
14 Diet Orange Fizzy 12 oz 24 S-14-12 oz-24
14 Diet Orange Fizzy 20 oz 8 S-14-20 oz-8
15 Grape Fizzy 12 oz 1 S-15-12 oz-1
15 Grape Fizzy 20 oz 1 S-15-20 oz-1
15 Grape Fizzy 1 liter 1 S-15-1 liter-1
15 Grape Fizzy 2 liter 1 S-15-2 liter-1
15 Grape Fizzy 12 oz 6 S-15-12 oz-6
15 Grape Fizzy 12 oz 12 S-15-12 oz-12
15 Grape Fizzy 12 oz 24 S-15-12 oz-24
15 Grape Fizzy 20 oz 8 S-15-20 oz-8
15 Grape Fizzy 20 oz 12 S-15-20 oz-12
16 Diet Grape Fizzy 12 oz 1 S-16-12 oz-1
16 Diet Grape Fizzy 20 oz 1 S-16-20 oz-1
16 Diet Grape Fizzy 2 liter 1 S-16-2 liter-1
16 Diet Grape Fizzy 12 oz 6 S-16-12 oz-6
16 Diet Grape Fizzy 12 oz 24 S-16-12 oz-24
16 Diet Grape Fizzy 20 oz 8 S-16-20 oz-8



Product Code Mapping for Energy Drinks
Created in Activity 7.2

Product
Number
Product Name Individual
Container
Size
Retail Unit Size Product Code
1 Zip-Orange 8 oz 1 E-1-8 oz-1
1 Zip-Orange 16 oz 1 E-1-16 oz-1
1 Zip-Orange 8 oz 4 E-1-8 oz-4
1 Zip-Orange 8 oz 6 E-1-8 oz-6
1 Zip-Orange 16 oz 4 E-1-16 oz-4
1 Zip-Orange 16 oz 6 E-1-16 oz-6
2 Zip-Berry 8 oz 1 E-2-8 oz-1
2 Zip-Berry 16 oz 1 E-2-16 oz-1
2 Zip-Berry 8 oz 4 E-2-8 oz-4
2 Zip-Berry 8 oz 6 E-2-8 oz-6
2 Zip-Berry 16 oz 4 E-2-16 oz-4
2 Zip-Berry 16 oz 6 E-2-16 oz-6
3 Zip-Grape 8 oz 1 E-3-8 oz-1
3 Zip-Grape 16 oz 1 E-3-16 oz-1
3 Zip-Grape 8 oz 4 E-3-8 oz-4
3 Zip-Grape 16 oz 4 E-3-16 oz-4
4 Diet Zip-Orange 8 oz 1 E-4-8 oz-1
4 Diet Zip-Orange 16 oz 1 E-4-16 oz-1
4 Diet Zip-Orange 8 oz 4 E-4-8 oz-4
4 Diet Zip-Orange 8 oz 6 E-4-8 oz-6
4 Diet Zip-Orange 16 oz 4 E-4-16 oz-4
4 Diet Zip-Orange 16 oz 6 E-4-16 oz-6
5 Diet Zip-Berry 8 oz 1 E-5-8 oz-1
5 Diet Zip-Berry 16 oz 1 E-5-16 oz-1
5 Diet Zip-Berry 8 oz 4 E-5-8 oz-4
5 Diet Zip-Berry 8 oz 6 E-5-8 oz-6
5 Diet Zip-Berry 16 oz 4 E-5-16 oz-4
5 Diet Zip-Berry 16 oz 6 E-5-16 oz-6
6 Diet Zip-Grape 8 oz 1 E-6-8 oz-1
6 Diet Zip-Grape 16 oz 1 E-6-16 oz-1
6 Diet Zip-Grape 8 oz 4 E-6-8 oz-4
6 Diet Zip-Grape 16 oz 4 E-6-16 oz-4
7 Big Zip-Berry 8 oz 1 E-7-8 oz-1
7 Big Zip-Berry 16 oz 1 E-7-16 oz-1
7 Big Zip-Berry 8 oz 4 E-7-8 oz-4
7 Big Zip-Berry 8 oz 6 E-7-8 oz-6
7 Big Zip-Berry 16 oz 4 E-7-16 oz-4
7 Big Zip-Berry 16 oz 6 E-7-16 oz-6
8 Big Zip-Grape 8 oz 1 E-8-8 oz-1
8 Big Zip-Grape 16 oz 1 E-8-16 oz-1
8 Big Zip-Grape 8 oz 4 E-8-8 oz-4
8 Big Zip-Grape 16 oz 4 E-8-16 oz-4
9 Diet Big Zip-Berry 8 oz 1 E-9-8 oz-1
9 Diet Big Zip-Berry 16 oz 1 E-9-16 oz-1
9 Diet Big Zip-Berry 8 oz 4 E-9-8 oz-4
9 Diet Big Zip-Berry 8 oz 6 E-9-8 oz-6
9 Diet Big Zip-Berry 16 oz 4 E-9-16 oz-4
9 Diet Big Zip-Berry 16 oz 6 E-9-16 oz-6
10 Diet Big Zip-Grape 8 oz 1 E-10-8 oz-1
10 Diet Big Zip-Grape 16 oz 1 E-10-16 oz-1
10 Diet Big Zip-Grape 8 oz 4 E-10-8 oz-4
10 Diet Big Zip-Grape 16 oz 4 E-10-16 oz-4
11 Mega Zip-Orange 16 oz 1 E-11-16 oz-1
11 Mega Zip-Orange 16 oz 4 E-11-16 oz-4
11 Mega Zip-Orange 16 oz 6 E-11-16 oz-6
12 Mega Zip-Berry 16 oz 1 E-12-16 oz-1
12 Mega Zip-Berry 16 oz 4 E-12-16 oz-4
12 Mega Zip-Berry 16 oz 6 E-12-16 oz-6
13 Diet Mega Zip-Orange 16 oz 1 E-13-16 oz-1
13 Diet Mega Zip-Orange 16 oz 4 E-13-16 oz-4
13 Diet Mega Zip-Orange 16 oz 6 E-13-16 oz-6
14 Diet Mega Zip-Berry 16 oz 1 E-14-16 oz-1
14 Diet Mega Zip-Berry 16 oz 4 E-14-16 oz-4
14 Diet Mega Zip-Berry 16 oz 6 E-14-16 oz-6



Product Code Mapping for Other Drinks
Created in Activity 7.3

Product
Number
Product Name Individual Container
Size
Retail Unit Size Product Code
1 Non-Soda Ades-Lemonade 12 oz 1 O-1-12 oz-1
1 Non-Soda Ades-Lemonade 20 oz 1 O-1-20 oz-1
1 Non-Soda Ades-Lemonade 2 liter 1 O-1-2 liter-1
1 Non-Soda Ades-Lemonade 12 oz 6 O-1-12 oz-6
1 Non-Soda Ades-Lemonade 12 oz 24 O-1-12 oz-24
1 Non-Soda Ades-Lemonade 20 oz 8 O-1-20 oz-8
2 Non-Soda Ades-Diet Lemonade 12 oz 1 O-2-12 oz-1
2 Non-Soda Ades-Diet Lemonade 20 oz 1 O-2-20 oz-1
2 Non-Soda Ades-Diet Lemonade 2 liter 1 O-2-2 liter-1
2 Non-Soda Ades-Diet Lemonade 12 oz 6 O-2-12 oz-6
2 Non-Soda Ades-Diet Lemonade 12 oz 24 O-2-12 oz-24
2 Non-Soda Ades-Diet Lemonade 20 oz 8 O-2-20 oz-8
3 Non-Soda Ades-Orangeade 12 oz 1 O-3-12 oz-1
3 Non-Soda Ades-Orangeade 20 oz 1 O-3-20 oz-1
3 Non-Soda Ades-Orangeade 2 liter 1 O-3-2 liter-1
3 Non-Soda Ades-Orangeade 12 oz 6 O-3-12 oz-6
3 Non-Soda Ades-Orangeade 12 oz 24 O-3-12 oz-24
3 Non-Soda Ades-Orangeade 20 oz 8 O-3-20 oz-8
4 Non-Soda Ades-Diet Orangeade 12 oz 1 O-4-12 oz-1
4 Non-Soda Ades-Diet Orangeade 20 oz 1 O-4-20 oz-1
4 Non-Soda Ades-Diet Orangeade 2 liter 1 O-4-2 liter-1
4 Non-Soda Ades-Diet Orangeade 12 oz 6 O-4-12 oz-6
4 Non-Soda Ades-Diet Orangeade 12 oz 24 O-4-12 oz-24
4 Non-Soda Ades-Diet Orangeade 20 oz 8 O-4-20 oz-8
5 Nutritional Water-Orange 20 oz 1 O-5-20 oz-1
5 Nutritional Water-Orange 20 oz 8 O-5-20 oz-8
6 Nutritional Water-Grape 20 oz 1 O-6-20 oz-1
6 Nutritional Water-Grape 20 oz 8 O-6-20 oz-8
7 Diet Nutritional Water-Orange 20 oz 1 O-7-20 oz-1
7 Diet Nutritional Water-Orange 20 oz 8 O-7-20 oz-8
8 Diet Nutritional Water-Grape 20 oz 1 O-8-20 oz-1
8 Diet Nutritional Water-Grape 20 oz 8 O-8-20 oz-8