powered by
Generates a random sample from all distributions specified within an object of class elicitation
elicitation
sampleFit(fit, n, expert = 1)
A matrix of sampled values, one column per distribution. Column names are given to label the distributions.
An object of class elicitation
The required sample size for each elicitation
Specify which expert's distributions to sample from, if multiple experts' judgements have been elicited.
if (FALSE) { v <- c(20,30,50) p <- c(0.25,0.5,0.75) myfit <- fitdist(vals = v, probs = p, lower = 0, upper = 100) sampleFit(myfit, n = 10) }
Run the code above in your browser using DataLab