sampleFit | R Documentation |
Generates a random sample from all distributions specified
within an object of class elicitation
sampleFit(fit, n, expert = 1)
fit |
An object of class elicitation |
n |
The required sample size for each elicitation |
expert |
Specify which expert's distributions to sample from, if multiple experts' judgements have been elicited. |
A matrix of sampled values, one column per distribution. Column names are given to label the distributions.
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.