# Example from Inman (2004) p. 93-104, predicting flash drive introduction dates
drive <- c("A", "B", "C", "D", "E", "F", "G")
x <- data.frame(c(16, 14, 8, 25, 40, 30, 40))
rownames(x) <- drive
colnames(x) <- c("Cost")
y <- data.frame(c(16, 32, 32, 128, 32, 64, 256))
rownames(y) <- drive
colnames(y) <- c("Capacity")
z <- data.frame(c(2001, 2002, 2003, 2004, 2001, 2002, 2004))
rownames(z) <- drive
colnames(z) <- c("Date_Intro")
# Calc intro date for products using forecast year 2003
results <- TFDEA(x, y, z, 2003, rts="vrs", orientation="output", mode="dynamic")
# Examine what dates are forecast for DMU D & G
print(results$dmu_date_for)
Run the code above in your browser using DataLab