# NOT RUN {
# Find observed MEC
cen_result <- c(rep("", 10), rep("<", 10))
result <- 1:20
find_mec(cen_result, result)
cen_result <- rep("<", 20)
find_mec(cen_result, result)
cen_result <- rep("", 20)
find_mec(cen_result, result)
# Demonstrate simplified output
find_mec(cen_result, result, simple_output = TRUE)
# Define a set of custom non-detect flags
cen_result <- c(rep("non-detect", 5), rep("<", 10), rep("mdl", 5))
find_mec(cen_result, result, nd = c("non-detect", "<", "mdl"))
# }
Run the code above in your browser using DataLab