INDIAN CIGARETTE MARKET — DATA CREATION | PROC FORMAT | PROC CONTENTS | PROC SORT | PROC PRINT | PROC FREQ | PROC MEANS | PROC SUMMARY | PROC UNIVARIATE | PROC TABULATE | PROC REPORT | PROC TRANSPOSE | PROC SQL | PROC RANK | PROC SGPLOT | MACROS — IN SAS
/*CREATING THE DATASET OF INDIAN CIGARETTE ANALYTICS */
1.PROC FORMAT — define human-friendly labels for codes
proc format;
value $segfmt 'PREM'='Premium' 'MID'='Mid-Price' 'VAL'='Value';
value $sizefmt 'KS'='King Size (84mm)' 'REG'='Regular (69–72mm)' 'SLIM'='Slim/100s';
value filterfmt 0='No Filter' 1='Filter';
value $manufmt 'ITC'='ITC Ltd.' 'GPI'='Godfrey Phillips India' 'VST'='VST Industries' 'OTH'='Others/Regional';
value yesno 0='No' 1='Yes';
run;
Log:
2.DATA Step
options nocenter;
data cig_master;
length Brand $24 Type $8 Size $5 Manufacturer $3 Segment $4 City $16 State $16;
infile datalines dlm=',' dsd truncover;
input Brand :$24. Type :$8. Size :$5. Filter_Flag :8.
Length_mm :8. Pack_Size :8. Tar_mg :8. Nicotine_mg :8.
MRP_INR :8. Manufacturer :$3. Segment :$4.
City :$16. State :$16. Menthol_Flag :8. Launch_Year :8.;
format Segment $segfmt. Size $sizefmt. Filter_Flag filterfmt. Manufacturer $manufmt. Menthol_Flag yesno.;
datalines;
Gold Flake,Blended,KS,1,84,20,12,1.0,200,ITC, MID,Hyderabad,Telangana,0,1971
Wills Navy Cut,Blended,REG,1,69,20,14,1.2,180,ITC, MID,Chennai,Tamil Nadu,0,1963
Four Square,Blended,KS,1,84,20,13,1.1,195,GPI, MID,Pune,Maharashtra,0,1973
Charms,Flavored,REG,1,69,20,15,1.3,160,GPI, VAL,Kanpur,Uttar Pradesh,1,1971
Navy Cut 100s,Blended,SLIM,1,100,20,11,1.0,220,ITC, PREM,Kolkata,West Bengal,0,1980
Insignia,Blended,KS,1,84,20,10,0.9,600,ITC, PREM,Mumbai,Maharashtra,0,2003
Charminar,Blend,REG,0,70,10,16,1.4,140,VST, VAL,Hyderabad,Telangana,0,1930
Marlboro,Blended,KS,1,84,20,12,1.0,360,OTH, PREM,Delhi,Delhi,0,2008
Bristol,Blended,REG,1,69,20,14,1.2,170,ITC, VAL,Patna,Bihar,0,1976
Capstan,Blended,REG,1,69,20,15,1.3,165,OTH, VAL,Jaipur,Rajasthan,0,1960
Flake Excel,Blended,KS,1,84,20,12,1.1,205,ITC, MID,Indore,Madhya Pradesh,0,1992
Four Square Kings,Blended,KS,1,84,10,12,1.0,210,GPI, MID,Ahmedabad,Gujarat,0,1990
Cavanders,Blended,REG,1,69,20,13,1.1,175,GPI, MID,Surat,Gujarat,0,1985
Dunhill Switch,Flavored,KS,1,84,20,10,0.8,500,OTH, PREM,Bengaluru,Karnataka,1,2012
Classic Menthol,Flavored,KS,1,84,20,11,0.9,340,ITC, PREM,Thane,Maharashtra,1,2005
Duke,Blend,REG,1,70,20,15,1.3,150,VST, VAL,Vijayawada,Andhra Pradesh,0,1974
Gold Flake Neo,Blended,KS,1,84,20,12,1.0,230,ITC, MID,Noida,Uttar Pradesh,0,2018
Navy Cut Filter,Blended,REG,1,69,10,14,1.2,185,ITC, MID,Coimbatore,Tamil Nadu,0,1977
Benson & Hedges,Blended,KS,1,84,20,10,0.8,520,OTH, PREM,Chandigarh,Chandigarh,0,2009
Charminar Special,Blend,REG,0,70,20,17,1.5,145,VST, VAL,Warangal,Telangana,0,1955
;
run;
proc print;run;
Output:
| Obs | Brand | Type | Size | Manufacturer | Segment | City | State | Filter_Flag | Length_mm | Pack_Size | Tar_mg | Nicotine_mg | MRP_INR | Menthol_Flag | Launch_Year |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Gold Flake | Blended | King Size (84mm) | ITC Ltd. | Mid-Price | Hyderabad | Telangana | Filter | 84 | 20 | 12 | 1.0 | 200 | No | 1971 |
| 2 | Wills Navy Cut | Blended | Regular (69–72mm) | ITC Ltd. | Mid-Price | Chennai | Tamil Nadu | Filter | 69 | 20 | 14 | 1.2 | 180 | No | 1963 |
| 3 | Four Square | Blended | King Size (84mm) | Godfrey Phillips India | Mid-Price | Pune | Maharashtra | Filter | 84 | 20 | 13 | 1.1 | 195 | No | 1973 |
| 4 | Charms | Flavored | Regular (69–72mm) | Godfrey Phillips India | Value | Kanpur | Uttar Pradesh | Filter | 69 | 20 | 15 | 1.3 | 160 | Yes | 1971 |
| 5 | Navy Cut 100s | Blended | Slim/100s | ITC Ltd. | Premium | Kolkata | West Bengal | Filter | 100 | 20 | 11 | 1.0 | 220 | No | 1980 |
| 6 | Insignia | Blended | King Size (84mm) | ITC Ltd. | Premium | Mumbai | Maharashtra | Filter | 84 | 20 | 10 | 0.9 | 600 | No | 2003 |
| 7 | Charminar | Blend | Regular (69–72mm) | VST Industries | Value | Hyderabad | Telangana | No Filter | 70 | 10 | 16 | 1.4 | 140 | No | 1930 |
| 8 | Marlboro | Blended | King Size (84mm) | Others/Regional | Premium | Delhi | Delhi | Filter | 84 | 20 | 12 | 1.0 | 360 | No | 2008 |
| 9 | Bristol | Blended | Regular (69–72mm) | ITC Ltd. | Value | Patna | Bihar | Filter | 69 | 20 | 14 | 1.2 | 170 | No | 1976 |
| 10 | Capstan | Blended | Regular (69–72mm) | Others/Regional | Value | Jaipur | Rajasthan | Filter | 69 | 20 | 15 | 1.3 | 165 | No | 1960 |
| 11 | Flake Excel | Blended | King Size (84mm) | ITC Ltd. | Mid-Price | Indore | Madhya Pradesh | Filter | 84 | 20 | 12 | 1.1 | 205 | No | 1992 |
| 12 | Four Square Kings | Blended | King Size (84mm) | Godfrey Phillips India | Mid-Price | Ahmedabad | Gujarat | Filter | 84 | 10 | 12 | 1.0 | 210 | No | 1990 |
| 13 | Cavanders | Blended | Regular (69–72mm) | Godfrey Phillips India | Mid-Price | Surat | Gujarat | Filter | 69 | 20 | 13 | 1.1 | 175 | No | 1985 |
| 14 | Dunhill Switch | Flavored | King Size (84mm) | Others/Regional | Premium | Bengaluru | Karnataka | Filter | 84 | 20 | 10 | 0.8 | 500 | Yes | 2012 |
| 15 | Classic Menthol | Flavored | King Size (84mm) | ITC Ltd. | Premium | Thane | Maharashtra | Filter | 84 | 20 | 11 | 0.9 | 340 | Yes | 2005 |
| 16 | Duke | Blend | Regular (69–72mm) | VST Industries | Value | Vijayawada | Andhra Pradesh | Filter | 70 | 20 | 15 | 1.3 | 150 | No | 1974 |
| 17 | Gold Flake Neo | Blended | King Size (84mm) | ITC Ltd. | Mid-Price | Noida | Uttar Pradesh | Filter | 84 | 20 | 12 | 1.0 | 230 | No | 2018 |
| 18 | Navy Cut Filter | Blended | Regular (69–72mm) | ITC Ltd. | Mid-Price | Coimbatore | Tamil Nadu | Filter | 69 | 10 | 14 | 1.2 | 185 | No | 1977 |
| 19 | Benson & Hedges | Blended | King Size (84mm) | Others/Regional | Premium | Chandigarh | Chandigarh | Filter | 84 | 20 | 10 | 0.8 | 520 | No | 2009 |
| 20 | Charminar Special | Blend | Regular (69–72mm) | VST Industries | Value | Warangal | Telangana | No Filter | 70 | 20 | 17 | 1.5 | 145 | No | 1955 |
3.DATA Step — derive calculated fields
data cig_master_enriched;
set cig_master;
/* Average price per stick */
Price_per_Stick = MRP_INR / Pack_Size;
/* Simple tax model (illustrative only): base excise by size + ad valorem % on MRP */
length Tax_Regime $40;
if Size='KS' then Base_Excise=2.5;
else if Size='SLIM' then Base_Excise=3.0;
else Base_Excise=2.0;
AdValorem_Pct =
(Segment='Premium')*0.52 +
(Segment='Mid-Price')*0.45 +
(Segment='Value')*0.40;
Est_Tax = Base_Excise + (MRP_INR * AdValorem_Pct);
Net_Realization = MRP_INR - Est_Tax;
/* Risk proxy index (purely synthetic): higher tar/nicotine and menthol flag raise score */
Risk_Index = 0.5*Tar_mg + 0.8*Nicotine_mg + 2*Menthol_Flag + (1-Filter_Flag)*2;
/* Concatenate size and segment safely */
Tax_Regime = catx('-', Size, Segment);
label
Price_per_Stick = "MRP per Stick (INR)"
Est_Tax = "Estimated Indirect Tax (INR per pack)"
Net_Realization = "MRP minus Est. Tax"
Risk_Index = "Synthetic Risk Index (higher=worse)"
Tax_Regime = "Size-Segment Tax Regime";
run;
proc print data=cig_master_enriched;
var Brand Type Size Manufacturer Segment City State Price_per_Stick Base_Excise AdValorem_Pct Est_Tax
Net_Realization Risk_Index Tax_Regime;
run;
Output:
| Obs | Brand | Type | Size | Manufacturer | Segment | City | State | Price_per_Stick | Base_Excise | AdValorem_Pct | Est_Tax | Net_Realization | Risk_Index | Tax_Regime |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Gold Flake | Blended | King Size (84mm) | ITC Ltd. | Mid-Price | Hyderabad | Telangana | 10.00 | 2.5 | 0 | 2.5 | 197.5 | 6.80 | KS-MID |
| 2 | Wills Navy Cut | Blended | Regular (69–72mm) | ITC Ltd. | Mid-Price | Chennai | Tamil Nadu | 9.00 | 2.0 | 0 | 2.0 | 178.0 | 7.96 | REG-MID |
| 3 | Four Square | Blended | King Size (84mm) | Godfrey Phillips India | Mid-Price | Pune | Maharashtra | 9.75 | 2.5 | 0 | 2.5 | 192.5 | 7.38 | KS-MID |
| 4 | Charms | Flavored | Regular (69–72mm) | Godfrey Phillips India | Value | Kanpur | Uttar Pradesh | 8.00 | 2.0 | 0 | 2.0 | 158.0 | 10.54 | REG-VAL |
| 5 | Navy Cut 100s | Blended | Slim/100s | ITC Ltd. | Premium | Kolkata | West Bengal | 11.00 | 3.0 | 0 | 3.0 | 217.0 | 6.30 | SLIM-PREM |
| 6 | Insignia | Blended | King Size (84mm) | ITC Ltd. | Premium | Mumbai | Maharashtra | 30.00 | 2.5 | 0 | 2.5 | 597.5 | 5.72 | KS-PREM |
| 7 | Charminar | Blend | Regular (69–72mm) | VST Industries | Value | Hyderabad | Telangana | 14.00 | 2.0 | 0 | 2.0 | 138.0 | 11.12 | REG-VAL |
| 8 | Marlboro | Blended | King Size (84mm) | Others/Regional | Premium | Delhi | Delhi | 18.00 | 2.5 | 0 | 2.5 | 357.5 | 6.80 | KS-PREM |
| 9 | Bristol | Blended | Regular (69–72mm) | ITC Ltd. | Value | Patna | Bihar | 8.50 | 2.0 | 0 | 2.0 | 168.0 | 7.96 | REG-VAL |
| 10 | Capstan | Blended | Regular (69–72mm) | Others/Regional | Value | Jaipur | Rajasthan | 8.25 | 2.0 | 0 | 2.0 | 163.0 | 8.54 | REG-VAL |
| 11 | Flake Excel | Blended | King Size (84mm) | ITC Ltd. | Mid-Price | Indore | Madhya Pradesh | 10.25 | 2.5 | 0 | 2.5 | 202.5 | 6.88 | KS-MID |
| 12 | Four Square Kings | Blended | King Size (84mm) | Godfrey Phillips India | Mid-Price | Ahmedabad | Gujarat | 21.00 | 2.5 | 0 | 2.5 | 207.5 | 6.80 | KS-MID |
| 13 | Cavanders | Blended | Regular (69–72mm) | Godfrey Phillips India | Mid-Price | Surat | Gujarat | 8.75 | 2.0 | 0 | 2.0 | 173.0 | 7.38 | REG-MID |
| 14 | Dunhill Switch | Flavored | King Size (84mm) | Others/Regional | Premium | Bengaluru | Karnataka | 25.00 | 2.5 | 0 | 2.5 | 497.5 | 7.64 | KS-PREM |
| 15 | Classic Menthol | Flavored | King Size (84mm) | ITC Ltd. | Premium | Thane | Maharashtra | 17.00 | 2.5 | 0 | 2.5 | 337.5 | 8.22 | KS-PREM |
| 16 | Duke | Blend | Regular (69–72mm) | VST Industries | Value | Vijayawada | Andhra Pradesh | 7.50 | 2.0 | 0 | 2.0 | 148.0 | 8.54 | REG-VAL |
| 17 | Gold Flake Neo | Blended | King Size (84mm) | ITC Ltd. | Mid-Price | Noida | Uttar Pradesh | 11.50 | 2.5 | 0 | 2.5 | 227.5 | 6.80 | KS-MID |
| 18 | Navy Cut Filter | Blended | Regular (69–72mm) | ITC Ltd. | Mid-Price | Coimbatore | Tamil Nadu | 18.50 | 2.0 | 0 | 2.0 | 183.0 | 7.96 | REG-MID |
| 19 | Benson & Hedges | Blended | King Size (84mm) | Others/Regional | Premium | Chandigarh | Chandigarh | 26.00 | 2.5 | 0 | 2.5 | 517.5 | 5.64 | KS-PREM |
| 20 | Charminar Special | Blend | Regular (69–72mm) | VST Industries | Value | Warangal | Telangana | 7.25 | 2.0 | 0 | 2.0 | 143.0 | 11.70 | REG-VAL |
4.PROC CONTENTS — inspect structure
proc contents data=cig_master_enriched varnum;
run;
Output:
The CONTENTS Procedure
| Data Set Name | WORK.CIG_MASTER_ENRICHED | Observations | 20 |
|---|---|---|---|
| Member Type | DATA | Variables | 22 |
| Engine | V9 | Indexes | 0 |
| Created | 09/04/2025 19:51:24 | Observation Length | 232 |
| Last Modified | 09/04/2025 19:51:24 | Deleted Observations | 0 |
| Protection | Compressed | NO | |
| Data Set Type | Sorted | NO | |
| Label | |||
| Data Representation | SOLARIS_X86_64, LINUX_X86_64, ALPHA_TRU64, LINUX_IA64 | ||
| Encoding | utf-8 Unicode (UTF-8) |
| Engine/Host Dependent Information | |
|---|---|
| Data Set Page Size | 131072 |
| Number of Data Set Pages | 1 |
| First Data Page | 1 |
| Max Obs per Page | 564 |
| Obs in First Data Page | 20 |
| Number of Data Set Repairs | 0 |
| Filename | /saswork/SAS_work0A8D00002FAE_odaws01-apse1-2.oda.sas.com/SAS_work3F3500002FAE_odaws01-apse1-2.oda.sas.com/cig_master_enriched.sas7bdat |
| Release Created | 9.0401M8 |
| Host Created | Linux |
| Inode Number | 1085845 |
| Access Permission | rw-r--r-- |
| Owner Name | u63247146 |
| File Size | 256KB |
| File Size (bytes) | 262144 |
| Variables in Creation Order | |||||
|---|---|---|---|---|---|
| # | Variable | Type | Len | Format | Label |
| 1 | Brand | Char | 24 | ||
| 2 | Type | Char | 8 | ||
| 3 | Size | Char | 5 | $SIZEFMT. | |
| 4 | Manufacturer | Char | 3 | $MANUFMT. | |
| 5 | Segment | Char | 4 | $SEGFMT. | |
| 6 | City | Char | 16 | ||
| 7 | State | Char | 16 | ||
| 8 | Filter_Flag | Num | 8 | FILTERFMT. | |
| 9 | Length_mm | Num | 8 | ||
| 10 | Pack_Size | Num | 8 | ||
| 11 | Tar_mg | Num | 8 | ||
| 12 | Nicotine_mg | Num | 8 | ||
| 13 | MRP_INR | Num | 8 | ||
| 14 | Menthol_Flag | Num | 8 | YESNO. | |
| 15 | Launch_Year | Num | 8 | ||
| 16 | Price_per_Stick | Num | 8 | MRP per Stick (INR) | |
| 17 | Tax_Regime | Char | 40 | Size-Segment Tax Regime | |
| 18 | Base_Excise | Num | 8 | ||
| 19 | AdValorem_Pct | Num | 8 | ||
| 20 | Est_Tax | Num | 8 | Estimated Indirect Tax (INR per pack) | |
| 21 | Net_Realization | Num | 8 | MRP minus Est. Tax | |
| 22 | Risk_Index | Num | 8 | Synthetic Risk Index (higher=worse) | |
5.PROC SORT — prepare orders for analysis
proc sort data=cig_master_enriched out=cig_sorted_by_price;
by descending MRP_INR;
run;
proc print data=cig_sorted_by_price (obs=10) label;
title "Top 10 MRP Packs";
var Brand Manufacturer Segment Size MRP_INR Price_per_Stick Est_Tax Net_Realization;
run;
Output:
| Obs | Brand | Manufacturer | Segment | Size | MRP_INR | MRP per Stick (INR) | Estimated Indirect Tax (INR per pack) | MRP minus Est. Tax |
|---|---|---|---|---|---|---|---|---|
| 1 | Insignia | ITC Ltd. | Premium | King Size (84mm) | 600 | 30.00 | 2.5 | 597.5 |
| 2 | Benson & Hedges | Others/Regional | Premium | King Size (84mm) | 520 | 26.00 | 2.5 | 517.5 |
| 3 | Dunhill Switch | Others/Regional | Premium | King Size (84mm) | 500 | 25.00 | 2.5 | 497.5 |
| 4 | Marlboro | Others/Regional | Premium | King Size (84mm) | 360 | 18.00 | 2.5 | 357.5 |
| 5 | Classic Menthol | ITC Ltd. | Premium | King Size (84mm) | 340 | 17.00 | 2.5 | 337.5 |
| 6 | Gold Flake Neo | ITC Ltd. | Mid-Price | King Size (84mm) | 230 | 11.50 | 2.5 | 227.5 |
| 7 | Navy Cut 100s | ITC Ltd. | Premium | Slim/100s | 220 | 11.00 | 3.0 | 217.0 |
| 8 | Four Square Kings | Godfrey Phillips India | Mid-Price | King Size (84mm) | 210 | 21.00 | 2.5 | 207.5 |
| 9 | Flake Excel | ITC Ltd. | Mid-Price | King Size (84mm) | 205 | 10.25 | 2.5 | 202.5 |
| 10 | Gold Flake | ITC Ltd. | Mid-Price | King Size (84mm) | 200 | 10.00 | 2.5 | 197.5 |
6.PROC FREQ — distributions
proc freq data=cig_master_enriched;
tables Manufacturer*Segment Size*Filter_Flag Menthol_Flag / nocol nopercent norow;
title "Category Distributions by Manufacturer/Segment & Size/Filter";
run;
Output:
The FREQ Procedure
|
| ||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||
| Menthol_Flag | Frequency | Cumulative Frequency |
|---|---|---|
| No | 17 | 17 |
| Yes | 3 | 20 |
7.PROC MEANS — summary stats
proc means data=cig_master_enriched n mean std min p25 median p75 max maxdec=2;
class Segment;
var MRP_INR Price_per_Stick Tar_mg Nicotine_mg Est_Tax Net_Realization Risk_Index;
title "Summary Stats by Segment";
run;
Output:
The MEANS Procedure
| Segment | N Obs | Variable | Label | N | Mean | Std Dev | Minimum | 25th Pctl | Median | 75th Pctl | Maximum |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Mid-Price | 8 | MRP_INR Price_per_Stick Tar_mg Nicotine_mg Est_Tax Net_Realization Risk_Index | MRP per Stick (INR) Estimated Indirect Tax (INR per pack) MRP minus Est. Tax Synthetic Risk Index (higher=worse) | 8 8 8 8 8 8 8 | 197.50 12.34 12.75 1.09 2.31 195.19 7.25 | 17.93 4.69 0.89 0.08 0.26 17.72 0.51 | 175.00 8.75 12.00 1.00 2.00 173.00 6.80 | 182.50 9.38 12.00 1.00 2.00 180.50 6.80 | 197.50 10.13 12.50 1.10 2.50 195.00 7.13 | 207.50 15.00 13.50 1.15 2.50 205.00 7.67 | 230.00 21.00 14.00 1.20 2.50 227.50 7.96 |
| Premium | 6 | MRP_INR Price_per_Stick Tar_mg Nicotine_mg Est_Tax Net_Realization Risk_Index | MRP per Stick (INR) Estimated Indirect Tax (INR per pack) MRP minus Est. Tax Synthetic Risk Index (higher=worse) | 6 6 6 6 6 6 6 | 423.33 21.17 10.67 0.90 2.58 420.75 6.72 | 140.52 7.03 0.82 0.09 0.20 140.67 1.04 | 220.00 11.00 10.00 0.80 2.50 217.00 5.64 | 340.00 17.00 10.00 0.80 2.50 337.50 5.72 | 430.00 21.50 10.50 0.90 2.50 427.50 6.55 | 520.00 26.00 11.00 1.00 2.50 517.50 7.64 | 600.00 30.00 12.00 1.00 3.00 597.50 8.22 |
| Value | 6 | MRP_INR Price_per_Stick Tar_mg Nicotine_mg Est_Tax Net_Realization Risk_Index | MRP per Stick (INR) Estimated Indirect Tax (INR per pack) MRP minus Est. Tax Synthetic Risk Index (higher=worse) | 6 6 6 6 6 6 6 | 155.00 8.92 15.33 1.33 2.00 153.00 9.73 | 11.83 2.53 1.03 0.10 0.00 11.83 1.58 | 140.00 7.25 14.00 1.20 2.00 138.00 7.96 | 145.00 7.50 15.00 1.30 2.00 143.00 8.54 | 155.00 8.13 15.00 1.30 2.00 153.00 9.54 | 165.00 8.50 16.00 1.40 2.00 163.00 11.12 | 170.00 14.00 17.00 1.50 2.00 168.00 11.70 |
8.PROC SUMMARY — grouped aggregates
proc summary data=cig_master_enriched nway;
class Manufacturer Segment;
var MRP_INR Price_per_Stick Est_Tax;
output out=agg_manuf (drop=_type_ _freq_)
n=Count mean(MRP_INR)=Avg_MRP mean(Price_per_Stick)=Avg_PPS mean(Est_Tax)=Avg_Tax;
run;
proc print;run;
Output:
| Obs | Manufacturer | Segment | Count | Avg_MRP | Avg_PPS | Avg_Tax |
|---|---|---|---|---|---|---|
| 1 | Godfrey Phillips India | Mid-Price | 3 | 193.333 | 13.1667 | 2.33333 |
| 2 | Godfrey Phillips India | Value | 1 | 160.000 | 8.0000 | 2.00000 |
| 3 | ITC Ltd. | Mid-Price | 5 | 200.000 | 11.8500 | 2.30000 |
| 4 | ITC Ltd. | Premium | 3 | 386.667 | 19.3333 | 2.66667 |
| 5 | ITC Ltd. | Value | 1 | 170.000 | 8.5000 | 2.00000 |
| 6 | Others/Regional | Premium | 3 | 460.000 | 23.0000 | 2.50000 |
| 7 | Others/Regional | Value | 1 | 165.000 | 8.2500 | 2.00000 |
| 8 | VST Industries | Value | 3 | 145.000 | 9.5833 | 2.00000 |
9.PROC UNIVARIATE — distribution diagnostics
proc univariate data=cig_master_enriched;
var Price_per_Stick Tar_mg Nicotine_mg;
histogram Price_per_Stick Tar_mg Nicotine_mg;
inset n mean std skewness kurtosis / position=ne;
title "Univariate Diagnostics for Key Measures";
run;
Output:
The UNIVARIATE Procedure
Variable: Price_per_Stick (MRP per Stick (INR))
| Moments | |||
|---|---|---|---|
| N | 20 | Sum Weights | 20 |
| Mean | 13.9625 | Sum Observations | 279.25 |
| Std Deviation | 6.95203255 | Variance | 48.3307566 |
| Skewness | 1.06568565 | Kurtosis | -0.0005827 |
| Uncorrected SS | 4817.3125 | Corrected SS | 918.284375 |
| Coeff Variation | 49.7907434 | Std Error Mean | 1.55452174 |
| Basic Statistical Measures | |||
|---|---|---|---|
| Location | Variability | ||
| Mean | 13.96250 | Std Deviation | 6.95203 |
| Median | 10.62500 | Variance | 48.33076 |
| Mode | . | Range | 22.75000 |
| Interquartile Range | 9.62500 | ||
| Tests for Location: Mu0=0 | ||||
|---|---|---|---|---|
| Test | Statistic | p Value | ||
| Student's t | t | 8.981862 | Pr > |t| | <.0001 |
| Sign | M | 10 | Pr >= |M| | <.0001 |
| Signed Rank | S | 105 | Pr >= |S| | <.0001 |
| Quantiles (Definition 5) | |
|---|---|
| Level | Quantile |
| 100% Max | 30.000 |
| 99% | 30.000 |
| 95% | 28.000 |
| 90% | 25.500 |
| 75% Q3 | 18.250 |
| 50% Median | 10.625 |
| 25% Q1 | 8.625 |
| 10% | 7.750 |
| 5% | 7.375 |
| 1% | 7.250 |
| 0% Min | 7.250 |
| Extreme Observations | |||
|---|---|---|---|
| Lowest | Highest | ||
| Value | Obs | Value | Obs |
| 7.25 | 20 | 18.5 | 18 |
| 7.50 | 16 | 21.0 | 12 |
| 8.00 | 4 | 25.0 | 14 |
| 8.25 | 10 | 26.0 | 19 |
| 8.50 | 9 | 30.0 | 6 |
The UNIVARIATE Procedure
The UNIVARIATE Procedure
Variable: Tar_mg
| Moments | |||
|---|---|---|---|
| N | 20 | Sum Weights | 20 |
| Mean | 12.9 | Sum Observations | 258 |
| Std Deviation | 2.04939015 | Variance | 4.2 |
| Skewness | 0.271491 | Kurtosis | -0.7577768 |
| Uncorrected SS | 3408 | Corrected SS | 79.8 |
| Coeff Variation | 15.8867454 | Std Error Mean | 0.45825757 |
| Basic Statistical Measures | |||
|---|---|---|---|
| Location | Variability | ||
| Mean | 12.90000 | Std Deviation | 2.04939 |
| Median | 12.50000 | Variance | 4.20000 |
| Mode | 12.00000 | Range | 7.00000 |
| Interquartile Range | 3.00000 | ||
| Tests for Location: Mu0=0 | ||||
|---|---|---|---|---|
| Test | Statistic | p Value | ||
| Student's t | t | 28.15011 | Pr > |t| | <.0001 |
| Sign | M | 10 | Pr >= |M| | <.0001 |
| Signed Rank | S | 105 | Pr >= |S| | <.0001 |
| Quantiles (Definition 5) | |
|---|---|
| Level | Quantile |
| 100% Max | 17.0 |
| 99% | 17.0 |
| 95% | 16.5 |
| 90% | 15.5 |
| 75% Q3 | 14.5 |
| 50% Median | 12.5 |
| 25% Q1 | 11.5 |
| 10% | 10.0 |
| 5% | 10.0 |
| 1% | 10.0 |
| 0% Min | 10.0 |
| Extreme Observations | |||
|---|---|---|---|
| Lowest | Highest | ||
| Value | Obs | Value | Obs |
| 10 | 19 | 15 | 4 |
| 10 | 14 | 15 | 10 |
| 10 | 6 | 15 | 16 |
| 11 | 15 | 16 | 7 |
| 11 | 5 | 17 | 20 |
The UNIVARIATE Procedure
The UNIVARIATE Procedure
Variable: Nicotine_mg
| Moments | |||
|---|---|---|---|
| N | 20 | Sum Weights | 20 |
| Mean | 1.105 | Sum Observations | 22.1 |
| Std Deviation | 0.19324105 | Variance | 0.03734211 |
| Skewness | 0.2622087 | Kurtosis | -0.5372647 |
| Uncorrected SS | 25.13 | Corrected SS | 0.7095 |
| Coeff Variation | 17.4878783 | Std Error Mean | 0.04321001 |
| Basic Statistical Measures | |||
|---|---|---|---|
| Location | Variability | ||
| Mean | 1.105000 | Std Deviation | 0.19324 |
| Median | 1.100000 | Variance | 0.03734 |
| Mode | 1.000000 | Range | 0.70000 |
| Interquartile Range | 0.25000 | ||
| Tests for Location: Mu0=0 | ||||
|---|---|---|---|---|
| Test | Statistic | p Value | ||
| Student's t | t | 25.57278 | Pr > |t| | <.0001 |
| Sign | M | 10 | Pr >= |M| | <.0001 |
| Signed Rank | S | 105 | Pr >= |S| | <.0001 |
| Quantiles (Definition 5) | |
|---|---|
| Level | Quantile |
| 100% Max | 1.50 |
| 99% | 1.50 |
| 95% | 1.45 |
| 90% | 1.35 |
| 75% Q3 | 1.25 |
| 50% Median | 1.10 |
| 25% Q1 | 1.00 |
| 10% | 0.85 |
| 5% | 0.80 |
| 1% | 0.80 |
| 0% Min | 0.80 |
| Extreme Observations | |||
|---|---|---|---|
| Lowest | Highest | ||
| Value | Obs | Value | Obs |
| 0.8 | 19 | 1.3 | 4 |
| 0.8 | 14 | 1.3 | 10 |
| 0.9 | 15 | 1.3 | 16 |
| 0.9 | 6 | 1.4 | 7 |
| 1.0 | 17 | 1.5 | 20 |
The UNIVARIATE Procedure
10.PROC TABULATE — pivot-style table
proc tabulate data=cig_master_enriched format=8.2;
class Manufacturer Segment Size;
var MRP_INR Price_per_Stick Est_Tax;
table Manufacturer,
Segment*Size*(MRP_INR*mean Price_per_Stick*mean Est_Tax*mean);
title "Manufacturer × Segment × Size — Average Price & Tax";
run;
Output:
| Segment | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mid-Price | Premium | Value | |||||||||||||
| Size | Size | Size | |||||||||||||
| King Size (84mm) | Regular (69–72mm) | King Size (84mm) | Slim/100s | Regular (69–72mm) | |||||||||||
| MRP_INR | MRP per Stick (INR) | Estimated Indirect Tax (INR per pack) | MRP_INR | MRP per Stick (INR) | Estimated Indirect Tax (INR per pack) | MRP_INR | MRP per Stick (INR) | Estimated Indirect Tax (INR per pack) | MRP_INR | MRP per Stick (INR) | Estimated Indirect Tax (INR per pack) | MRP_INR | MRP per Stick (INR) | Estimated Indirect Tax (INR per pack) | |
| Mean | Mean | Mean | Mean | Mean | Mean | Mean | Mean | Mean | Mean | Mean | Mean | Mean | Mean | Mean | |
| Manufacturer | 202.50 | 15.38 | 2.50 | 175.00 | 8.75 | 2.00 | . | . | . | . | . | . | 160.00 | 8.00 | 2.00 |
| Godfrey Phillips India | |||||||||||||||
| ITC Ltd. | 211.67 | 10.58 | 2.50 | 182.50 | 13.75 | 2.00 | 470.00 | 23.50 | 2.50 | 220.00 | 11.00 | 3.00 | 170.00 | 8.50 | 2.00 |
| Others/Regional | . | . | . | . | . | . | 460.00 | 23.00 | 2.50 | . | . | . | 165.00 | 8.25 | 2.00 |
| VST Industries | . | . | . | . | . | . | . | . | . | . | . | . | 145.00 | 9.58 | 2.00 |
11.PROC REPORT — styled reporting
proc report data=agg_manuf nowd;
columns Manufacturer Segment Count Avg_MRP Avg_PPS Avg_Tax;
define Manufacturer / group 'Manufacturer';
define Segment / group 'Segment';
define Count / analysis 'N';
define Avg_MRP / analysis mean format=8.2 'Avg MRP';
define Avg_PPS / analysis mean format=8.3 'Avg Price/Stick';
define Avg_Tax / analysis mean format=8.2 'Avg Est. Tax';
title "Aggregated Manufacturer-Segment Report";
run;
Output:
| Manufacturer | Segment | N | Avg MRP | Avg Price Stick | Avg Est. Tax |
|---|---|---|---|---|---|
| Godfrey Phillips India | Mid-Price | 3 | 193.33 | 13.167 | 2.33 |
| Value | 1 | 160.00 | 8.000 | 2.00 | |
| ITC Ltd. | Mid-Price | 5 | 200.00 | 11.850 | 2.30 |
| Premium | 3 | 386.67 | 19.333 | 2.67 | |
| Value | 1 | 170.00 | 8.500 | 2.00 | |
| Others/Regional | Premium | 3 | 460.00 | 23.000 | 2.50 |
| Value | 1 | 165.00 | 8.250 | 2.00 | |
| VST Industries | Value | 3 | 145.00 | 9.583 | 2.00 |
12.PROC TRANSPOSE — wide/long reshaping
proc transpose data=cig_master_enriched out=price_wide prefix=MRP_;
by Manufacturer notsorted;
id Brand;
var MRP_INR;
run;
proc print data=price_wide(obs=10);
run;
Output:
| Obs | Manufacturer | _NAME_ | MRP_Gold Flake | MRP_Wills Navy Cut | MRP_Four Square | MRP_Charms | MRP_Navy Cut 100s | MRP_Insignia | MRP_Charminar | MRP_Marlboro | MRP_Bristol | MRP_Capstan | MRP_Flake Excel | MRP_Four Square Kings | MRP_Cavanders | MRP_Dunhill Switch | MRP_Classic Menthol | MRP_Duke | MRP_Gold Flake Neo | MRP_Navy Cut Filter | MRP_Benson & Hedges | MRP_Charminar Special |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | ITC Ltd. | MRP_INR | 200 | 180 | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| 2 | Godfrey Phillips India | MRP_INR | . | . | 195 | 160 | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| 3 | ITC Ltd. | MRP_INR | . | . | . | . | 220 | 600 | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| 4 | VST Industries | MRP_INR | . | . | . | . | . | . | 140 | . | . | . | . | . | . | . | . | . | . | . | . | . |
| 5 | Others/Regional | MRP_INR | . | . | . | . | . | . | . | 360 | . | . | . | . | . | . | . | . | . | . | . | . |
| 6 | ITC Ltd. | MRP_INR | . | . | . | . | . | . | . | . | 170 | . | . | . | . | . | . | . | . | . | . | . |
| 7 | Others/Regional | MRP_INR | . | . | . | . | . | . | . | . | . | 165 | . | . | . | . | . | . | . | . | . | . |
| 8 | ITC Ltd. | MRP_INR | . | . | . | . | . | . | . | . | . | . | 205 | . | . | . | . | . | . | . | . | . |
| 9 | Godfrey Phillips India | MRP_INR | . | . | . | . | . | . | . | . | . | . | . | 210 | 175 | . | . | . | . | . | . | . |
| 10 | Others/Regional | MRP_INR | . | . | . | . | . | . | . | . | . | . | . | . | . | 500 | . | . | . | . | . | . |
13.PROC SQL — queries & joins
proc sql noprint;
create table city_region as
select distinct City, State,
case
when State in ('Maharashtra','Gujarat') then 'West'
when State in ('Telangana','Andhra Pradesh','Karnataka','Tamil Nadu') then 'South'
when State in ('Uttar Pradesh','Bihar') then 'North-Central'
when State in ('Delhi','Chandigarh','Rajasthan') then 'North'
when State in ('West Bengal') then 'East'
else 'Other'
end as Region length=14
from cig_master_enriched;
create table cig_with_region as
select a.*, b.Region
from cig_master_enriched as a
left join city_region as b
on a.City=b.City and a.State=b.State;
create table region_avgs as
select Region, Segment,
count(*) as N,
mean(MRP_INR) as Avg_MRP,
mean(Price_per_Stick) as Avg_PPS,
mean(Est_Tax) as Avg_Tax
from cig_with_region
group by Region, Segment;
quit;
proc print data=region_avgs;
run;
Output:
| Obs | Region | Segment | N | Avg_MRP | Avg_PPS | Avg_Tax |
|---|---|---|---|---|---|---|
| 1 | East | Premium | 1 | 220.000 | 11.0000 | 3.00000 |
| 2 | North | Premium | 2 | 440.000 | 22.0000 | 2.50000 |
| 3 | North | Value | 1 | 165.000 | 8.2500 | 2.00000 |
| 4 | North-Central | Mid-Price | 1 | 230.000 | 11.5000 | 2.50000 |
| 5 | North-Central | Value | 2 | 165.000 | 8.2500 | 2.00000 |
| 6 | Other | Mid-Price | 1 | 205.000 | 10.2500 | 2.50000 |
| 7 | South | Mid-Price | 3 | 188.333 | 12.5000 | 2.16667 |
| 8 | South | Premium | 1 | 500.000 | 25.0000 | 2.50000 |
| 9 | South | Value | 3 | 145.000 | 9.5833 | 2.00000 |
| 10 | West | Mid-Price | 3 | 193.333 | 13.1667 | 2.33333 |
| 11 | West | Premium | 2 | 470.000 | 23.5000 | 2.50000 |
14.PROC RANK — rank brands by price per stick
proc rank data=cig_master_enriched out=ranked ties=low descending;
var Price_per_Stick;
ranks Rank_PPS;
run;
proc print;run;
Output:
| Obs | Brand | Type | Size | Manufacturer | Segment | City | State | Filter_Flag | Length_mm | Pack_Size | Tar_mg | Nicotine_mg | MRP_INR | Menthol_Flag | Launch_Year | Price_per_Stick | Tax_Regime | Base_Excise | AdValorem_Pct | Est_Tax | Net_Realization | Risk_Index | Rank_PPS |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Gold Flake | Blended | King Size (84mm) | ITC Ltd. | Mid-Price | Hyderabad | Telangana | Filter | 84 | 20 | 12 | 1.0 | 200 | No | 1971 | 10.00 | KS-MID | 2.5 | 0 | 2.5 | 197.5 | 6.80 | 12 |
| 2 | Wills Navy Cut | Blended | Regular (69–72mm) | ITC Ltd. | Mid-Price | Chennai | Tamil Nadu | Filter | 69 | 20 | 14 | 1.2 | 180 | No | 1963 | 9.00 | REG-MID | 2.0 | 0 | 2.0 | 178.0 | 7.96 | 14 |
| 3 | Four Square | Blended | King Size (84mm) | Godfrey Phillips India | Mid-Price | Pune | Maharashtra | Filter | 84 | 20 | 13 | 1.1 | 195 | No | 1973 | 9.75 | KS-MID | 2.5 | 0 | 2.5 | 192.5 | 7.38 | 13 |
| 4 | Charms | Flavored | Regular (69–72mm) | Godfrey Phillips India | Value | Kanpur | Uttar Pradesh | Filter | 69 | 20 | 15 | 1.3 | 160 | Yes | 1971 | 8.00 | REG-VAL | 2.0 | 0 | 2.0 | 158.0 | 10.54 | 18 |
| 5 | Navy Cut 100s | Blended | Slim/100s | ITC Ltd. | Premium | Kolkata | West Bengal | Filter | 100 | 20 | 11 | 1.0 | 220 | No | 1980 | 11.00 | SLIM-PREM | 3.0 | 0 | 3.0 | 217.0 | 6.30 | 10 |
| 6 | Insignia | Blended | King Size (84mm) | ITC Ltd. | Premium | Mumbai | Maharashtra | Filter | 84 | 20 | 10 | 0.9 | 600 | No | 2003 | 30.00 | KS-PREM | 2.5 | 0 | 2.5 | 597.5 | 5.72 | 1 |
| 7 | Charminar | Blend | Regular (69–72mm) | VST Industries | Value | Hyderabad | Telangana | No Filter | 70 | 10 | 16 | 1.4 | 140 | No | 1930 | 14.00 | REG-VAL | 2.0 | 0 | 2.0 | 138.0 | 11.12 | 8 |
| 8 | Marlboro | Blended | King Size (84mm) | Others/Regional | Premium | Delhi | Delhi | Filter | 84 | 20 | 12 | 1.0 | 360 | No | 2008 | 18.00 | KS-PREM | 2.5 | 0 | 2.5 | 357.5 | 6.80 | 6 |
| 9 | Bristol | Blended | Regular (69–72mm) | ITC Ltd. | Value | Patna | Bihar | Filter | 69 | 20 | 14 | 1.2 | 170 | No | 1976 | 8.50 | REG-VAL | 2.0 | 0 | 2.0 | 168.0 | 7.96 | 16 |
| 10 | Capstan | Blended | Regular (69–72mm) | Others/Regional | Value | Jaipur | Rajasthan | Filter | 69 | 20 | 15 | 1.3 | 165 | No | 1960 | 8.25 | REG-VAL | 2.0 | 0 | 2.0 | 163.0 | 8.54 | 17 |
| 11 | Flake Excel | Blended | King Size (84mm) | ITC Ltd. | Mid-Price | Indore | Madhya Pradesh | Filter | 84 | 20 | 12 | 1.1 | 205 | No | 1992 | 10.25 | KS-MID | 2.5 | 0 | 2.5 | 202.5 | 6.88 | 11 |
| 12 | Four Square Kings | Blended | King Size (84mm) | Godfrey Phillips India | Mid-Price | Ahmedabad | Gujarat | Filter | 84 | 10 | 12 | 1.0 | 210 | No | 1990 | 21.00 | KS-MID | 2.5 | 0 | 2.5 | 207.5 | 6.80 | 4 |
| 13 | Cavanders | Blended | Regular (69–72mm) | Godfrey Phillips India | Mid-Price | Surat | Gujarat | Filter | 69 | 20 | 13 | 1.1 | 175 | No | 1985 | 8.75 | REG-MID | 2.0 | 0 | 2.0 | 173.0 | 7.38 | 15 |
| 14 | Dunhill Switch | Flavored | King Size (84mm) | Others/Regional | Premium | Bengaluru | Karnataka | Filter | 84 | 20 | 10 | 0.8 | 500 | Yes | 2012 | 25.00 | KS-PREM | 2.5 | 0 | 2.5 | 497.5 | 7.64 | 3 |
| 15 | Classic Menthol | Flavored | King Size (84mm) | ITC Ltd. | Premium | Thane | Maharashtra | Filter | 84 | 20 | 11 | 0.9 | 340 | Yes | 2005 | 17.00 | KS-PREM | 2.5 | 0 | 2.5 | 337.5 | 8.22 | 7 |
| 16 | Duke | Blend | Regular (69–72mm) | VST Industries | Value | Vijayawada | Andhra Pradesh | Filter | 70 | 20 | 15 | 1.3 | 150 | No | 1974 | 7.50 | REG-VAL | 2.0 | 0 | 2.0 | 148.0 | 8.54 | 19 |
| 17 | Gold Flake Neo | Blended | King Size (84mm) | ITC Ltd. | Mid-Price | Noida | Uttar Pradesh | Filter | 84 | 20 | 12 | 1.0 | 230 | No | 2018 | 11.50 | KS-MID | 2.5 | 0 | 2.5 | 227.5 | 6.80 | 9 |
| 18 | Navy Cut Filter | Blended | Regular (69–72mm) | ITC Ltd. | Mid-Price | Coimbatore | Tamil Nadu | Filter | 69 | 10 | 14 | 1.2 | 185 | No | 1977 | 18.50 | REG-MID | 2.0 | 0 | 2.0 | 183.0 | 7.96 | 5 |
| 19 | Benson & Hedges | Blended | King Size (84mm) | Others/Regional | Premium | Chandigarh | Chandigarh | Filter | 84 | 20 | 10 | 0.8 | 520 | No | 2009 | 26.00 | KS-PREM | 2.5 | 0 | 2.5 | 517.5 | 5.64 | 2 |
| 20 | Charminar Special | Blend | Regular (69–72mm) | VST Industries | Value | Warangal | Telangana | No Filter | 70 | 20 | 17 | 1.5 | 145 | No | 1955 | 7.25 | REG-VAL | 2.0 | 0 | 2.0 | 143.0 | 11.70 | 20 |
15.PROC SGPLOT — simple visuals
title "Price per Stick by Segment";
proc sgplot data=ranked;
vbox Price_per_Stick / category=Segment;
yaxis label="INR per Stick";
run;
title "MRP vs Estimated Tax (Bubble by Tar mg)";
proc sgplot data=cig_master_enriched;
bubble x=MRP_INR y=Est_Tax size=Tar_mg / transparency=0.1;
refline 200 300 400 / axis=x;
xaxis label="MRP (INR per pack)";
yaxis label="Estimated Tax (INR)";
run;
Output:
16.Macro %segment_filter — subset by segment
%macro segment_filter(seg=Premium);
proc sql;
create table seg_&seg as
select * from cig_master_enriched
where put(Segment,$segfmt.)="&seg";
quit;
proc means data=seg_&seg n mean std min max maxdec=2;
var MRP_INR Price_per_Stick Est_Tax Risk_Index;
title "Segment &seg — Key Stats";
run;
%mend;
%segment_filter(seg=Premium);
Output:
The MEANS Procedure
| Variable | Label | N | Mean | Std Dev | Minimum | Maximum |
|---|---|---|---|---|---|---|
MRP_INR Price_per_Stick Est_Tax Risk_Index | MRP per Stick (INR) Estimated Indirect Tax (INR per pack) Synthetic Risk Index (higher=worse) | 6 6 6 6 | 423.33 21.17 2.58 6.72 | 140.52 7.03 0.20 1.04 | 220.00 11.00 2.50 5.64 | 600.00 30.00 3.00 8.22 |
%segment_filter(seg=Value);
Output:
The MEANS Procedure
| Variable | Label | N | Mean | Std Dev | Minimum | Maximum |
|---|---|---|---|---|---|---|
MRP_INR Price_per_Stick Est_Tax Risk_Index | MRP per Stick (INR) Estimated Indirect Tax (INR per pack) Synthetic Risk Index (higher=worse) | 6 6 6 6 | 155.00 8.92 2.00 9.73 | 11.83 2.53 0.00 1.58 | 140.00 7.25 2.00 7.96 | 170.00 14.00 2.00 11.70 |
17.Macro %price_band — create bands & counts
%macro price_band(step=50, max=650);
data banded;
set cig_master_enriched;
length Price_Band $12;
Band_Low = floor(MRP_INR/&step.)*&step.;
Band_High = Band_Low + &step.;
Price_Band = cats(Band_Low,'-',Band_High);
run;
proc freq data=banded;
tables Price_Band / nocum nopercent;
title "Pack Price Bands (&step. INR step) — Counts";
run;
%mend;
%price_band(step=50, max=650);
Output:
The FREQ Procedure
| Price_Band | Frequency |
|---|---|
| 100-150 | 2 |
| 150-200 | 8 |
| 200-250 | 5 |
| 300-350 | 1 |
| 350-400 | 1 |
| 500-550 | 2 |
| 600-650 | 1 |
18.Macro %tax_sensitivity — simulate tax change
%macro tax_sensitivity(adval_delta=0.05);
data scenario_tax;
set cig_master_enriched;
New_AdValorem = AdValorem_Pct + &adval_delta.;
New_Est_Tax = Base_Excise + (MRP_INR * New_AdValorem);
New_Net_Realization = MRP_INR - New_Est_Tax;
Impact_Net = New_Net_Realization - Net_Realization;
run;
proc means data=scenario_tax n mean min p25 median p75 max maxdec=2;
class Segment;
var Impact_Net New_Est_Tax;
title "Tax Sensitivity (Ad Valorem +&adval_delta.) — Impact on Net Realization";
run;
%mend;
%tax_sensitivity(adval_delta=0.03);
Output:
The MEANS Procedure
| Segment | N Obs | Variable | N | Mean | Minimum | 25th Pctl | Median | 75th Pctl | Maximum |
|---|---|---|---|---|---|---|---|---|---|
| Mid-Price | 8 | Impact_Net New_Est_Tax | 8 8 | -5.93 8.24 | -6.90 7.25 | -6.23 7.48 | -5.92 8.43 | -5.48 8.73 | -5.25 9.40 |
| Premium | 6 | Impact_Net New_Est_Tax | 6 6 | -12.70 15.28 | -18.00 9.60 | -15.60 12.70 | -12.90 15.40 | -10.20 18.10 | -6.60 20.50 |
| Value | 6 | Impact_Net New_Est_Tax | 6 6 | -4.65 6.65 | -5.10 6.20 | -4.95 6.35 | -4.65 6.65 | -4.35 6.95 | -4.20 7.10 |
%tax_sensitivity(adval_delta=-0.02);
The MEANS Procedure
| Segment | N Obs | Variable | N | Mean | Minimum | 25th Pctl | Median | 75th Pctl | Maximum |
|---|---|---|---|---|---|---|---|---|---|
| Mid-Price | 8 | Impact_Net New_Est_Tax | 8 8 | -5.93 8.24 | -6.90 7.25 | -6.23 7.48 | -5.92 8.43 | -5.48 8.73 | -5.25 9.40 |
| Premium | 6 | Impact_Net New_Est_Tax | 6 6 | -12.70 15.28 | -18.00 9.60 | -15.60 12.70 | -12.90 15.40 | -10.20 18.10 | -6.60 20.50 |
| Value | 6 | Impact_Net New_Est_Tax | 6 6 | -4.65 6.65 | -5.10 6.20 | -4.95 6.35 | -4.65 6.65 | -4.35 6.95 | -4.20 7.10 |
The MEANS Procedure
| Segment | N Obs | Variable | N | Mean | Minimum | 25th Pctl | Median | 75th Pctl | Maximum |
|---|---|---|---|---|---|---|---|---|---|
| Mid-Price | 8 | Impact_Net New_Est_Tax | 8 8 | 3.95 -1.64 | 3.50 -2.10 | 3.65 -1.70 | 3.95 -1.60 | 4.15 -1.50 | 4.60 -1.40 |
| Premium | 6 | Impact_Net New_Est_Tax | 6 6 | 8.47 -5.88 | 4.40 -9.50 | 6.80 -7.90 | 8.60 -6.10 | 10.40 -4.30 | 12.00 -1.40 |
| Value | 6 | Impact_Net New_Est_Tax | 6 6 | 3.10 -1.10 | 2.80 -1.40 | 2.90 -1.30 | 3.10 -1.10 | 3.30 -0.90 | 3.40 -0.80 |
No comments:
Post a Comment