# NOT RUN {
#Example with a very small sample to decrease computational time.
x1 <-runif(50, 50, 75)
x2 <-runif(50, 30, 75)
x <- cbind(x1, x2)
e <- rnorm(50, 0, 36)
a1 <- 0.4
a2 <- 0.6
y <- a1*x1 + a2*x2 + e
z <- ifelse(rnorm(50, 0, 1)>0, 1, 0)
#Conditional DEA
c_DEA <- conditional_DEA(input = x, output = y, exogenous = z,
m = 30, B = 50,
RTS = "crs", ORIENTATION = "in")
summary(c_DEA$eff)
# }
# NOT RUN {
#Example with bigger sample
x1 <-runif(100, 50, 75)
x2 <-runif(100, 30, 75)
x <- cbind(x1, x2)
a1 <- 0.4
a2 <- 0.6
y <- a1*x1 + a2*x2
z <- ifelse(rnorm(100, 0, 1)>0, 1, 0)
#Conditional DEA
c_DEA <- conditional_DEA(input = x, output = y, exogenous = z,
m = 30, B = 50,
RTS = "crs", ORIENTATION = "in")
summary(c_DEA$eff)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab