DEA in Stata DEA in Stata ® Data Envelopment Analysis in Stata Choonjoo Lee Choonjoo Lee ([email protected]) ([email protected]) Yong-bae Ji ([email protected]) Yong-bae Ji ([email protected]) Korea National Defense University, Republic of Korea National Defense University, Republic of Korea Korea Stata Conference DC09 (July 30-31, 2009) Stata Conference DC09 (July 30-31, 2009)
27
Embed
DEA in Stata DEA in Stata ® Data Envelopment Analysis in Stata Choonjoo Lee ([email protected]) Yong-bae Ji ([email protected]) Korea National Defense.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
2. The Basics of DEA(cont.)2. The Basics of DEA(cont.)
Assumptions to analyze the black boxAssumptions to analyze the black boxEconomic Behaviors: No input, no output!Economic Behaviors: No input, no output!(Free) Disposability(Free) DisposabilityConvexityConvexityFrontier Search: Piece-wise Linear MethodFrontier Search: Piece-wise Linear MethodScale EconomyScale EconomyOrientation: Input-based or Output-based Orientation: Input-based or Output-based
AnalysisAnalysis……
Assumptions to analyze the black boxAssumptions to analyze the black boxEconomic Behaviors: No input, no output!Economic Behaviors: No input, no output!(Free) Disposability(Free) DisposabilityConvexityConvexityFrontier Search: Piece-wise Linear MethodFrontier Search: Piece-wise Linear MethodScale EconomyScale EconomyOrientation: Input-based or Output-based Orientation: Input-based or Output-based
AnalysisAnalysis……
Interpretation of DEA ResultsInterpretation of DEA ResultsX-inefficiencyX-inefficiencyRational Choice of Input-Output MixesRational Choice of Input-Output MixesPerformancePerformance……
Interpretation of DEA ResultsInterpretation of DEA ResultsX-inefficiencyX-inefficiencyRational Choice of Input-Output MixesRational Choice of Input-Output MixesPerformancePerformance……
DEA in StataDEA in Stata®
2. The Basics of DEA(cont.)2. The Basics of DEA(cont.)
Terms & NotationsTerms & Notations
: Input, output matrix : Input, output matrix
: Row vector : Row vector
: Non-negativity vector: Non-negativity vector
: Real variable: Real variable
Decision Making Units(DMUs)Decision Making Units(DMUs)
Terms & NotationsTerms & Notations
: Input, output matrix : Input, output matrix
: Row vector : Row vector
: Non-negativity vector: Non-negativity vector
: Real variable: Real variable
Decision Making Units(DMUs)Decision Making Units(DMUs)
),( YX
,u vT
n )...,,( 1
,
DEA in StataDEA in Stata®
2. The Basics of DEA(cont.)2. The Basics of DEA(cont.)
Basic DEA Models: CCR, BCCBasic DEA Models: CCR, BCC Basic DEA Models: CCR, BCCBasic DEA Models: CCR, BCC
OrientationOrientation PrimalPrimal DualDual
Input Input
OrientedOriented
Output Output
OrientedOriented
( )* is the additional constraint in BCC model
*
*
*
max ( )
s.t. 1
( ) 0
0, 0, ( free in sign)
j j
j
j
j
z uy u
vx
vX uY u e
v u u
*
min
. . 0
( 1)
0
j
j
s t x X
Y y
e
*
*
*
min ( )
. . 1
( ) 0
0, 0, ( free in sign)
j j
j
j
j
z vx v
s t uy
vX uY v e
v u v
*
max
. . 0
0
( 1)
0
j
j
s t x X
y Y
e
DEA in StataDEA in Stata®
Characteristics of DEACharacteristics of DEA
No assumption about Input-Output FunctionNo assumption about Input-Output Function
No limits to the number of inputs and outputsNo limits to the number of inputs and outputs
Not required to weight restrictionsNot required to weight restrictions
Provide reference sets for benchmarkingProvide reference sets for benchmarking
Provide useful information for input-output mix decisionProvide useful information for input-output mix decision
n times computations for n DMUsn times computations for n DMUs
Characteristics of DEACharacteristics of DEA
No assumption about Input-Output FunctionNo assumption about Input-Output Function
No limits to the number of inputs and outputsNo limits to the number of inputs and outputs
Not required to weight restrictionsNot required to weight restrictions
Provide reference sets for benchmarkingProvide reference sets for benchmarking
Provide useful information for input-output mix decisionProvide useful information for input-output mix decision
n times computations for n DMUsn times computations for n DMUs
2. The Basics of DEA(cont.)2. The Basics of DEA(cont.)
DEA in StataDEA in Stata®
3. The Stata/DEA program
User Written Stata/DEA Description User Written Stata/DEA Description
Considered the basic DEA models (CCR & BCC)Considered the basic DEA models (CCR & BCC)
Can handle both input minimization and output Can handle both input minimization and output
maximization problemsmaximization problems
The data flow in the Stata/DEA programThe data flow in the Stata/DEA program the input and output variables data sets requiredthe input and output variables data sets required
the DEA options define the modelthe DEA options define the model
the “Stata/DEA” program consists of “basic” and “lp” subroutinethe “Stata/DEA” program consists of “basic” and “lp” subroutine
the result data sets available for print or further analysisthe result data sets available for print or further analysis
User Written Stata/DEA Description User Written Stata/DEA Description
Considered the basic DEA models (CCR & BCC)Considered the basic DEA models (CCR & BCC)
Can handle both input minimization and output Can handle both input minimization and output
maximization problemsmaximization problems
The data flow in the Stata/DEA programThe data flow in the Stata/DEA program the input and output variables data sets requiredthe input and output variables data sets required
the DEA options define the modelthe DEA options define the model
the “Stata/DEA” program consists of “basic” and “lp” subroutinethe “Stata/DEA” program consists of “basic” and “lp” subroutine
the result data sets available for print or further analysisthe result data sets available for print or further analysis
DEA in StataDEA in Stata®
3. The Stata/DEA program(cont.)
Input &Output
Variablesdata file
DEA Options
Data conversion
DEA result Report
LinearProgramming
Files ofEfficiency
& Lambdas
Basic Solution Generating
DEA Loop
DATA Stata /DEA RESULT
Diagram of Data flow in Stata/DEA program Diagram of Data flow in Stata/DEA program Diagram of Data flow in Stata/DEA program Diagram of Data flow in Stata/DEA program
DEA in StataDEA in Stata®
3. The Stata/DEA program(cont.)
Stata/DEA Syntax Stata/DEA Syntax (program code under Stata journal review)(program code under Stata journal review)
• • dea [, dea [, ddata(ata(stringstring) ) ioiotype(type(stringstring) ) modmodel(el(stringstring) ) llambda]ambda]
Stata/DEA Syntax Stata/DEA Syntax (program code under Stata journal review)(program code under Stata journal review)
• • dea [, dea [, ddata(ata(stringstring) ) ioiotype(type(stringstring) ) modmodel(el(stringstring) ) llambda]ambda]
DEA in StataDEA in Stata®
4. Stata/DEA Examples
Example 1: Example 1: Store’s efficiency case(for model verification)Store’s efficiency case(for model verification)
Data: two inputs, two outputs, and 5 DMUsData: two inputs, two outputs, and 5 DMUs
※※ Data imported from Cooper et al.(2006), p.75, Table 3.7Data imported from Cooper et al.(2006), p.75, Table 3.7
The inputs areThe inputs are The number of employees (Employee)The number of employees (Employee)
The floor area (Area)The floor area (Area)
The outputs areThe outputs are The volume of sales (Sales)The volume of sales (Sales)
The volume of profits (Profits)The volume of profits (Profits)
Example 1: Example 1: Store’s efficiency case(for model verification)Store’s efficiency case(for model verification)
Data: two inputs, two outputs, and 5 DMUsData: two inputs, two outputs, and 5 DMUs
※※ Data imported from Cooper et al.(2006), p.75, Table 3.7Data imported from Cooper et al.(2006), p.75, Table 3.7
The inputs areThe inputs are The number of employees (Employee)The number of employees (Employee)
The floor area (Area)The floor area (Area)
The outputs areThe outputs are The volume of sales (Sales)The volume of sales (Sales)
The volume of profits (Profits)The volume of profits (Profits)
DEA in StataDEA in Stata®
4. Stata/DEA Examples(cont.)
The data file including input and output variables The data file including input and output variables The data file including input and output variables The data file including input and output variables
A user needs to set the options as required and run the A user needs to set the options as required and run the following code for input orientation modelfollowing code for input orientation model
A user needs to set the options as required and run the A user needs to set the options as required and run the following code for input orientation modelfollowing code for input orientation model
※※ The input and output variables are saved in files "ta3_7.csv" The input and output variables are saved in files "ta3_7.csv"
DEA in StataDEA in Stata®
4. Stata/DEA Examples(cont.)
The Result WindowThe Result Window The Result WindowThe Result Window
DEA in StataDEA in Stata®
4. Stata/DEA Examples(cont.)
The result file including the efficiency score and reference set The result file including the efficiency score and reference set The result file including the efficiency score and reference set The result file including the efficiency score and reference set
☞ Scores match with the results of Cooper et. al.(2006).
DEA in StataDEA in Stata®
4. Stata/DEA Examples(cont.)
The result file including detail values for the efficiency score The result file including detail values for the efficiency score and reference set (and reference set (llambda option)ambda option)
The result file including detail values for the efficiency score The result file including detail values for the efficiency score and reference set (and reference set (llambda option)ambda option)
DEA in StataDEA in Stata®
4. Stata/DEA Examples(cont.)
Example 2: Weapons system construction efficiencyExample 2: Weapons system construction efficiency
two inputs, three outputs, and 10 DMUstwo inputs, three outputs, and 10 DMUs
※※ Data from JAA fr( Jane's Armour and Artillery)Data from JAA fr( Jane's Armour and Artillery)
The inputs areThe inputs are Combat weightCombat weight
HeightHeight
The outputs areThe outputs are Power-to-weight ratioPower-to-weight ratio
Max road speedMax road speed
Main armament diameterMain armament diameter
Example 2: Weapons system construction efficiencyExample 2: Weapons system construction efficiency
two inputs, three outputs, and 10 DMUstwo inputs, three outputs, and 10 DMUs
※※ Data from JAA fr( Jane's Armour and Artillery)Data from JAA fr( Jane's Armour and Artillery)
The inputs areThe inputs are Combat weightCombat weight
HeightHeight
The outputs areThe outputs are Power-to-weight ratioPower-to-weight ratio
Max road speedMax road speed
Main armament diameterMain armament diameter
DEA in StataDEA in Stata®
4. Stata/DEA Examples(cont.)
The data file including input and output variables The data file including input and output variables The data file including input and output variables The data file including input and output variables
※※ The input and output variables are saved in files "t4_2.csv" The input and output variables are saved in files "t4_2.csv"
The result file including the efficiency score and reference set The result file including the efficiency score and reference set The result file including the efficiency score and reference set The result file including the efficiency score and reference set
DEA in StataDEA in Stata®
4. Stata/DEA Examples(cont.)
The result file including detail values for the efficiency The result file including detail values for the efficiency score and reference set (score and reference set (llambda option)ambda option)
The result file including detail values for the efficiency The result file including detail values for the efficiency score and reference set (score and reference set (llambda option)ambda option)
DEA in StataDEA in Stata®
5. DEA Frontiers in Stata?5. DEA Frontiers in Stata?
The Stata/DEA program is a new application in Stata.The Stata/DEA program is a new application in Stata.
DEA is a prevalent and powerful managerial tool for measuring the performance.DEA is a prevalent and powerful managerial tool for measuring the performance.
The Stata/DEA program will provide Stata users with several opportunities :The Stata/DEA program will provide Stata users with several opportunities :
No extra cost to access DEANo extra cost to access DEA
Flexible DEA model extension and developmentFlexible DEA model extension and development
A powerful managerial tool as well as data management, statistical analysis, and A powerful managerial tool as well as data management, statistical analysis, and
optimization proceduresoptimization procedures
The Stata/DEA program report's files can directly feed to other Stata routines for The Stata/DEA program report's files can directly feed to other Stata routines for
further analysis.further analysis.
Further Extensions to 2Further Extensions to 2ndnd Stage Regression Analysis, DGP of DEA, Statistical Stage Regression Analysis, DGP of DEA, Statistical
Inferences of DEA, Case Specific DEA Models, and more are possible.Inferences of DEA, Case Specific DEA Models, and more are possible.
The Stata/DEA program is a new application in Stata.The Stata/DEA program is a new application in Stata.
DEA is a prevalent and powerful managerial tool for measuring the performance.DEA is a prevalent and powerful managerial tool for measuring the performance.
The Stata/DEA program will provide Stata users with several opportunities :The Stata/DEA program will provide Stata users with several opportunities :
No extra cost to access DEANo extra cost to access DEA
Flexible DEA model extension and developmentFlexible DEA model extension and development
A powerful managerial tool as well as data management, statistical analysis, and A powerful managerial tool as well as data management, statistical analysis, and
optimization proceduresoptimization procedures
The Stata/DEA program report's files can directly feed to other Stata routines for The Stata/DEA program report's files can directly feed to other Stata routines for
further analysis.further analysis.
Further Extensions to 2Further Extensions to 2ndnd Stage Regression Analysis, DGP of DEA, Statistical Stage Regression Analysis, DGP of DEA, Statistical
Inferences of DEA, Case Specific DEA Models, and more are possible.Inferences of DEA, Case Specific DEA Models, and more are possible.
DEA in StataDEA in Stata®
6. References6. References
Lee, C., & Ji, Y. (2009). “Data Envelopment Analysis in Stata”, under Lee, C., & Ji, Y. (2009). “Data Envelopment Analysis in Stata”, under
review by the Stata Journal.review by the Stata Journal.
Cooper, W. W., Seiford, L. M., & Tone, A. (2006). Introduction to Data Cooper, W. W., Seiford, L. M., & Tone, A. (2006). Introduction to Data
Envelopment Analysis and Its Uses, Springer Science+Business Media. Envelopment Analysis and Its Uses, Springer Science+Business Media.
Charnes, A., Cooper, W. W., & Rhodes, E. (1981). "Evaluating Program Charnes, A., Cooper, W. W., & Rhodes, E. (1981). "Evaluating Program
and Managerial Efficiency: An Application of Data Envelopment and Managerial Efficiency: An Application of Data Envelopment
Analysis to Program Follow Through." Management Science, Vol. 27., Analysis to Program Follow Through." Management Science, Vol. 27.,
pp. 668-697.pp. 668-697.
Banker, R. D., Charnes, A., & Coopers, A. A. (1984). “Some Models for Banker, R. D., Charnes, A., & Coopers, A. A. (1984). “Some Models for
Estimating Technical and Scale Inefficiencies in Data Envelopment Estimating Technical and Scale Inefficiencies in Data Envelopment