Library: | metrics |
See also: |
Quantlet: | fdhull | |
Description: | returns the FDH (free disposal hull) efficiency scores for each DMU (Decision Making Unit) |
Usage: | effscore = fdhull(X,Y) | |
Input: | ||
X | n x p matrix, p inputs of n DMU's, allows only POSITIVE values for its entries | |
Y | n x q matrix, q outputs of n DMU's, allows only POSITIVE values for its entries | |
Output: | ||
effscore | n x 2 matrix, the efficiency scores of DMU's the first column = input oriented scores the second column = output oriented scores |
library("metrics") nber96 = readcsv("nber96.csv", ",") DMU = nber96[,1] X = nber96[,2:5] Y = nber96[,6] fdh = fdhull(X,Y) DMU~fdh
The efficiency scores for each DMU are listed: Contents of string [1,] "readm: Found 458 line(s) and 6 column(s)" Contents of _tmp [ 1,] 2011 0.88724 0.94203 [ 2,] 2013 0.79505 0.80701 ... [456,] 3995 1 1 [457,] 3996 0.93548 0.88596 [458,] 3999 0.50809 0.47585