## Not run:
# # One expert, with elicited probabilities
# # P(X<20)=0.25, P(X<30)=0.5, P(X<50)=0.75
# # and X>0.
# v <- c(20,30,50)
# p <- c(0.25,0.5,0.75)
# fitdist(vals=v, probs=p, lower=0)
#
# # Now add a second expert, with elicited probabilities
# # P(X<55)=0.25, P(X<60=0.5), P(X<70)=0.75
# v <- matrix(c(20,30,50,55,60,70),3,2)
# p <- c(0.25,0.5,0.75)
# fitdist(vals=v, probs=p, lower=0)
#
# # Two experts, different elicited quantiles and limits.
# # Expert 1: P(X<50)=0.25, P(X<60=0.5), P(X<65)=0.75, and provides bounds 10<X<100
# # Expert 2: P(X<40)=0.33, P(X<50=0.5), P(X<60)=0.66, and provides bounds 0<X
# v <- matrix(c(50,60,65,40,50,60),3,2)
# p <- matrix(c(.25,.5,.75,.33,.5,.66),3,2)
# l <- c(10,0)
# u <- c(100, Inf)
# fitdist(vals=v, probs=p, lower=l, upper=u)
# ## End(Not run)
Run the code above in your browser using DataLab