sampleFit: Sample from the elicited distributions

Description Usage Arguments Value Examples

View source: R/sampleFit.R

Description

Generates a random sample from all distributions specified within an object of class elicitation

Usage

1
sampleFit(fit, n, expert = 1)

Arguments

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.

Value

A matrix of sampled values, one column per distribution. Column names are given to label the distributions.

Examples

1
2
3
4
5
6
7
## 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)

OakleyJ/SHELF documentation built on Aug. 30, 2020, 9:35 a.m.