Skip to content
Snippets Groups Projects
Commit af5e404f authored by thierrychambert's avatar thierrychambert
Browse files

correction in elicitation function to avoid issues when elicited values are 0

parent 74ff14db
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,8 @@
#'
elicitation <- function(vals, Cp, weights = 1, lower = 0, upper = Inf){
vals[vals == 0] <- min(min(vals[vals != 0])/100, 0.0001)
# Get probability of quantiles
probs <- sapply(X = Cp, FUN = function(Cp) c((1-Cp)/2, 0.5, Cp+(1-Cp)/2))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment