1
Step Create a dataset: data data; input wedding $18.; cards; D’Agostino-McGowan ; run; %macro wedding_budget (champagne=, wine=, beer=, liquor=, soda=, hours=, children=, adults=, adult_drinkers1=, adult_drinkers2=, adult_drinkers3=, champagne_=, wine_=, b_w=, pkg_b_w=, pkg=, pkgkids=); data new; set data; champagne=&champagne;wine=&wine; beer=&beer;liquor=&liquor;soda=&soda; hours=&hours;children=&children; adults=&adults; pkgkids=&pkgkids; adult_drinkers1=&adult_drinkers1; adult_drinkers2=&adult_drinkers2; adult_drinkers3=&adult_drinkers3; champagne_=&champagne_;wine_=&wine_; b_w=&b_w;pkg_b_w=&pkg_b_w;pkg=&pkg; run; data cost; set new; if champagne_=1 and wine_=1 then ppd=(champagne*adults)+(soda*children)+(wine*adults)+((soda+liquor)*5* adult_drinkers1)+((soda+liquor)*hours*adult_drinkers2)+((soda+liquor)*1.5* adult_drinkers3); else if champagne_=1 and wine_=0 then ppd=(champagne*adults)+(soda*children)+ ((soda+liquor)*5*adult_drinkers1)+((soda+liquor)*hours*adult_drinkers2)+ ((soda+liquor)*1.5*adult_drinkers3); else if champagne_=0 and wine_=1 then ppd=(soda*children)+(wine*adults)+ ((soda+liquor)*5*adult_drinkers1)+((soda+liquor)*hours*adult_drinkers2)+ ((soda+liquor)*1.5*adult_drinkers3); else if champagne_=0 and wine_=0 then ppd=(soda*children)+ ((soda+liquor)*5*adult_drinkers1)+((soda+liquor)*hours*adult_drinkers2)+ ((soda+liquor)*1.5*adult_drinkers3); ppp1=(pkg*adults)+(pkgkids*children); if b_w=1 then do; if champagne_=1 and wine_=1 then ppd=(champagne*adults)+(soda*children)+(wine*adults) +(beer*5*(adult_drinkers1/2))+(wine*5*(adult_drinkers1/2))+ (beer*hours*(adult_drinkers2/2))+(wine*hours*(adult_drinkers2/2)) +(beer*1.5*(adult_drinkers3/2))+(wine*1.5*(adult_drinkers3/2)); else if champagne_=1 and wine_=0 then ppd=(champagne*adults)+(soda*children) +(beer*5*(adult_drinkers1/2))+(wine*5*(adult_drinkers1/2))+ (beer*hours*(adult_drinkers2/2))+(wine*hours*(adult_drinkers2/2)) +(beer*1.5*(adult_drinkers3/2))+(wine*1.5*(adult_drinkers3/2)); else if champagne_=0 and wine_=1 then ppd=(soda*children)+(wine*adults) +(beer*5*(adult_drinkers1/2))+(wine*5*(adult_drinkers1/2))+ (beer*hours*(adult_drinkers2/2))+(wine*hours*(adult_drinkers2/2)) +(beer*1.5*(adult_drinkers3/2))+(wine*1.5*(adult_drinkers3/2)); else if champagne_=0 and wine_=0 then ppd=(soda*children) +(beer*5*(adult_drinkers1/2))+(wine*5*(adult_drinkers1/2))+ (beer*hours*(adult_drinkers2/2))+(wine*hours*(adult_drinkers2/2)) +(beer*1.5*(adult_drinkers3/2))+(wine*1.5*(adult_drinkers3/2)); ppp=(pkg_b_w*adults)+(pkgkids*children); end; run; %mend wedding_budget; Step Create Macro: Step Implement Macro with Your Values: %wedding_budget (champagne=4.22, wine=7, beer=4.5, liquor=6.75, soda=2, hours=4, children=21, adults=155, adult_drinkers1=30, adult_drinkers2=100, adult_drinkers3=20, champagne_=1, wine_=1, b_w=0, pkg_b_w=29.5, pkg=38.5, pkgkids=12.5); D’Agostino-McGowan Wedding Pay per Drink Pay per Person $6856.10 $6230 Results and Discussion: Analysis was performed using SAS/STAT® version 9.3. The D’Agostino-McGowan wedding example served beer, wine, and liquor, included a champagne toast, and served wine with all adult meals. Therefore, the macro implemented the following equations: Pay per Drink: ℎ × + × ℎ + × + × 5 × ℎ 5 ℎ + × ℎ × ℎ 1 ℎ ℎ + × 1.5 × ℎ 1 2 ℎ 4.22 × 155 + 2×21 + 7 × 155 + 2 + 6.75 × 5 × 30 + 2 + 6.75 × 4 × 100 + 2 + 6.75 × 1.5 × 20 = $6856.10 Pay per Person: × + ℎ × ℎ 38.5 × 155 + 12.5 × 21 = $6230 The equations would differ if the wedding reception only served beer and wine, if a champagne toast was not included, and/or if wine was not served with all adult meals. The above example focuses only on the consumption of mixed drinks, but is likely to underestimate total consumption because guests are likely to consume other drinks as well. Photo by McCardell Photography www.mccardellstudios.com Photos by McCardell Photography www.mccardellstudios.com Photo by McCardell Photography www.mccardellstudios.com Photo by McCardell Photography www.mccardellstudios.com Introduction: Methods: When considering beverages at a wedding reception, there are often two possible payment options: (1) A set price per person per hour (2) A fixed price per drink The following SAS® macro can be used to help choose the most cost effective option. Analysis: Key variables in this analysis are: (1) whether you are interested in serving beer and wine only or beer, wine, and liquor (b_w) (2) whether a champagne toast will be included (champagne) (3) whether wine will be served with all adult meals (wine) A key factor is determining the proportion of guests who fall into different alcohol consumption categories: high, moderate, and low. From the analysis, the ‘pay per person’ payment option was deemed optimal: Had the example wedding chose to only serve beer and wine and not have a champagne toast, for example, the ‘pay per drink’ option would have been preferable ($4462 versus $4835). It is important to recognize that at events such as weddings, when paying per drink, the host is required to pay for all drinks acquired by the guests, which is often more than the drinks consumed by the guests. At times, guests will have unfinished drinks, which count towards the total. Therefore, the model here may be an underestimation of the ‘pay per drink’ cost, making the decision to pay per person all the more valid. Weddings can be expensive endeavors. The methods detailed here will allow for couples to optimize their beverage costs. This demonstrates the utility of SAS® for such endeavors in order to increase efficiency and decrease superfluous spending.

When considering beverages at a wedding reception, there are … · 2014-01-06 · D’Agostino-McGowan Wedding Pay per Drink Pay per Person $6856.10 $6230 Results and Discussion:

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: When considering beverages at a wedding reception, there are … · 2014-01-06 · D’Agostino-McGowan Wedding Pay per Drink Pay per Person $6856.10 $6230 Results and Discussion:

Step

Create a dataset: data data;

input wedding $18.;

cards;

D’Agostino-McGowan

;

run;

%macro wedding_budget (champagne=, wine=, beer=, liquor=, soda=, hours=,

children=, adults=, adult_drinkers1=, adult_drinkers2=, adult_drinkers3=,

champagne_=, wine_=, b_w=, pkg_b_w=, pkg=, pkgkids=);

data new;

set data;

champagne=&champagne;wine=&wine;

beer=&beer;liquor=&liquor;soda=&soda;

hours=&hours;children=&children;

adults=&adults; pkgkids=&pkgkids;

adult_drinkers1=&adult_drinkers1;

adult_drinkers2=&adult_drinkers2;

adult_drinkers3=&adult_drinkers3;

champagne_=&champagne_;wine_=&wine_;

b_w=&b_w;pkg_b_w=&pkg_b_w;pkg=&pkg;

run;

data cost;

set new;

if champagne_=1 and wine_=1 then

ppd=(champagne*adults)+(soda*children)+(wine*adults)+((soda+liquor)*5*

adult_drinkers1)+((soda+liquor)*hours*adult_drinkers2)+((soda+liquor)*1.5*

adult_drinkers3);

else if champagne_=1 and wine_=0 then ppd=(champagne*adults)+(soda*children)+

((soda+liquor)*5*adult_drinkers1)+((soda+liquor)*hours*adult_drinkers2)+

((soda+liquor)*1.5*adult_drinkers3);

else if champagne_=0 and wine_=1 then ppd=(soda*children)+(wine*adults)+

((soda+liquor)*5*adult_drinkers1)+((soda+liquor)*hours*adult_drinkers2)+

((soda+liquor)*1.5*adult_drinkers3);

else if champagne_=0 and wine_=0 then ppd=(soda*children)+

((soda+liquor)*5*adult_drinkers1)+((soda+liquor)*hours*adult_drinkers2)+

((soda+liquor)*1.5*adult_drinkers3);

ppp1=(pkg*adults)+(pkgkids*children);

if b_w=1 then do;

if champagne_=1 and wine_=1 then ppd=(champagne*adults)+(soda*children)+(wine*adults)

+(beer*5*(adult_drinkers1/2))+(wine*5*(adult_drinkers1/2))+

(beer*hours*(adult_drinkers2/2))+(wine*hours*(adult_drinkers2/2))

+(beer*1.5*(adult_drinkers3/2))+(wine*1.5*(adult_drinkers3/2));

else if champagne_=1 and wine_=0 then ppd=(champagne*adults)+(soda*children)

+(beer*5*(adult_drinkers1/2))+(wine*5*(adult_drinkers1/2))+

(beer*hours*(adult_drinkers2/2))+(wine*hours*(adult_drinkers2/2))

+(beer*1.5*(adult_drinkers3/2))+(wine*1.5*(adult_drinkers3/2));

else if champagne_=0 and wine_=1 then ppd=(soda*children)+(wine*adults)

+(beer*5*(adult_drinkers1/2))+(wine*5*(adult_drinkers1/2))+

(beer*hours*(adult_drinkers2/2))+(wine*hours*(adult_drinkers2/2))

+(beer*1.5*(adult_drinkers3/2))+(wine*1.5*(adult_drinkers3/2));

else if champagne_=0 and wine_=0 then ppd=(soda*children)

+(beer*5*(adult_drinkers1/2))+(wine*5*(adult_drinkers1/2))+

(beer*hours*(adult_drinkers2/2))+(wine*hours*(adult_drinkers2/2))

+(beer*1.5*(adult_drinkers3/2))+(wine*1.5*(adult_drinkers3/2));

ppp=(pkg_b_w*adults)+(pkgkids*children);

end;

run;

%mend wedding_budget;

Step

Cre

ate

Mac

ro:

Step

Implement Macro with Your Values: %wedding_budget (champagne=4.22, wine=7, beer=4.5,

liquor=6.75, soda=2, hours=4, children=21, adults=155,

adult_drinkers1=30, adult_drinkers2=100,

adult_drinkers3=20, champagne_=1, wine_=1, b_w=0,

pkg_b_w=29.5, pkg=38.5, pkgkids=12.5);

D’Agostino-McGowan Wedding

Pay per Drink Pay per Person

$6856.10 $6230

Results and Discussion:

Analysis was performed using SAS/STAT® version 9.3. The D’Agostino-McGowan wedding example served beer, wine, and liquor, included a champagne toast, and served wine with all adult meals. Therefore, the macro implemented the following equations: Pay per Drink:

𝑐𝑜𝑠𝑡 𝑜𝑓 𝑐ℎ𝑎𝑚𝑝𝑎𝑔𝑛𝑒 × 𝑎𝑑𝑢𝑙𝑡𝑠 + 𝑐𝑜𝑠𝑡 𝑜𝑓 𝑠𝑜𝑑𝑎 × 𝑐ℎ𝑖𝑙𝑑𝑟𝑒𝑛+ 𝑐𝑜𝑠𝑡 𝑜𝑓 𝑤𝑖𝑛𝑒 × 𝑎𝑑𝑢𝑙𝑡𝑠+ 𝑐𝑜𝑠𝑡 𝑜𝑓 𝑙𝑖𝑞𝑢𝑜𝑟 𝑎𝑛𝑑 𝑚𝑖𝑥𝑒𝑟 × 5× 𝑎𝑑𝑢𝑙𝑡𝑠 𝑤ℎ𝑜 𝑤𝑖𝑙𝑙 𝑑𝑟𝑖𝑛𝑘 𝑎𝑡 𝑙𝑒𝑎𝑠𝑡 5 𝑎𝑙𝑐𝑜ℎ𝑜𝑙𝑖𝑐 𝑑𝑟𝑖𝑛𝑘𝑠 + 𝑐𝑜𝑠𝑡 𝑜𝑓 𝑙𝑖𝑞𝑢𝑜𝑟 𝑎𝑛𝑑 𝑚𝑖𝑥𝑒𝑟 × ℎ𝑜𝑢𝑟𝑠 𝑜𝑓 𝑟𝑒𝑐𝑒𝑝𝑡𝑖𝑜𝑛× 𝑎𝑑𝑢𝑙𝑡𝑠 𝑤ℎ𝑜 𝑤𝑖𝑙𝑙 𝑑𝑟𝑖𝑛𝑘 𝑎𝑡 𝑙𝑒𝑎𝑠𝑡 1 𝑎𝑙𝑐𝑜ℎ𝑜𝑙𝑖𝑐 𝑑𝑟𝑖𝑛𝑘 𝑝𝑒𝑟 ℎ𝑜𝑢𝑟 + 𝑐𝑜𝑠𝑡 𝑜𝑓 𝑙𝑖𝑞𝑢𝑜𝑟 𝑎𝑛𝑑 𝑚𝑖𝑥𝑒𝑟 × 1.5× 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑎𝑑𝑢𝑙𝑡𝑠 𝑤ℎ𝑜 𝑤𝑖𝑙𝑙 𝑑𝑟𝑖𝑛𝑘 1 𝑜𝑟 2 𝑎𝑙𝑐𝑜ℎ𝑜𝑙𝑖𝑐 𝑑𝑟𝑖𝑛𝑘𝑠

4.22 × 155 + 2 × 21 + 7 × 155 + 2 + 6.75 × 5 × 30

+ 2 + 6.75 × 4 × 100 + 2 + 6.75 × 1.5 × 20 = $6856.10

Pay per Person: 𝑐𝑜𝑠𝑡 𝑜𝑓 𝑑𝑟𝑖𝑛𝑘 𝑝𝑎𝑐𝑘𝑎𝑔𝑒 × 𝑎𝑑𝑢𝑙𝑡𝑠 + 𝑐𝑜𝑠𝑡 𝑜𝑓 𝑐ℎ𝑖𝑙𝑑𝑟𝑒𝑛′𝑠 𝑑𝑟𝑖𝑛𝑘 𝑝𝑎𝑐𝑘𝑎𝑔𝑒

× 𝑐ℎ𝑖𝑙𝑑𝑟𝑒𝑛

38.5 × 155 + 12.5 × 21 = $6230

The equations would differ if the wedding reception only served beer and wine, if a champagne toast was not included, and/or if wine was not served with all adult meals. The above example focuses only on the consumption of mixed drinks, but is likely to underestimate total consumption because guests are likely to consume other drinks as well.

Ph

oto

by M

cCard

ell Ph

oto

graphy w

ww

.mccard

ellstud

ios.co

m

Ph

oto

s by M

cCard

ell Ph

oto

graph

y ww

w.m

ccardellstu

dio

s.com

Ph

oto

by M

cCard

ell Ph

oto

graph

y ww

w.m

ccardellstu

dio

s.com

Photo by McCardell Photography www.mccardellstudios.com

Introduction:

Methods:

When considering beverages at a wedding reception, there are often two possible payment options:

(1) A set price per person per hour (2) A fixed price per drink

The following SAS® macro can be used to help choose the most cost effective option.

Analysis:

Key variables in this analysis are: (1) whether you are interested in serving beer and wine only or beer, wine, and liquor (b_w) (2) whether a champagne toast will be included (champagne) (3) whether wine will be served with all adult meals (wine) A key factor is determining the proportion of guests who fall into different alcohol consumption categories: high, moderate, and low.

From the analysis, the ‘pay per person’ payment option was deemed optimal:

Had the example wedding chose to only serve beer and wine and not have a champagne toast, for example, the ‘pay per drink’ option would have been preferable ($4462 versus $4835). It is important to recognize that at events such as weddings, when paying per drink, the host is required to pay for all drinks acquired by the guests, which is often more than the drinks consumed by the guests. At times, guests will have unfinished drinks, which count towards the total. Therefore, the model here may be an underestimation of the ‘pay per drink’ cost, making the decision to pay per person all the more valid. Weddings can be expensive endeavors. The methods detailed here will allow for couples to optimize their beverage costs. This demonstrates the utility of SAS® for such endeavors in order to increase efficiency and decrease superfluous spending.