# Load data
data('cardealers4')
# Define input and output
input <- cardealers4[, c('Employees', 'Depreciation')]
output <- cardealers4[, c('CarsSold', 'WorkOrders')]
# Compute dea model
model <- dea(input, output, name = 'DEA for cardealers4 dataset')
# Print DMU efficiencies
model
# Dealer A Dealer B Dealer C Dealer D Dealer E Dealer F
# 0.9915929 1.0000000 0.8928571 0.8653846 1.0000000 0.6515044
# Summarize the model and print aditional information
summary(model)
# Model name DEA for cardealers4 dataset
# Orientation input
# Inputs Employees Depreciation
# Outputs CarsSold WorkOrders
# nInputs 2
# nOutputs 2
# nVariables 4
# nEfficients 2
# Eff. Mean 0.90022318389575
# Eff. sd 0.135194867030839
# Eff. Min. 0.651504424778761
# Eff. 1st Qu. 0.872252747252747
# Eff. Median 0.942225031605562
# Eff. 3rd Qu. 0.997898230088496
# Eff. Max. 1
Run the code above in your browser using DataLab