# NOT RUN {
#Example with a very small sample to decrease computational time
y1 <-runif(50, 50, 75)
y2 <-runif(50, 30, 75)
y <- cbind(y1, y2)
z <- ifelse(rnorm(50, 0, 1)>0, 1, 0)
#Conditional BOD
c_BOD <- conditional_BOD(output = y, exogenous = z,
m = 30, B = 50)
summary(c_BOD$eff)
# }
# NOT RUN {
#Example with bigger sample
y1 <-runif(100, 50, 75)
y2 <-runif(100, 30, 75)
y <- cbind(y1, y2)
z <- ifelse(rnorm(100, 0, 1)>0, 1, 0)
#Conditional BOD
c_BOD <- conditional_BOD(output = y, exogenous = z,
similarity = FALSE,
m = 30, B = 50)
summary(c_BOD$eff)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab