sampleFit {SHELF}R Documentation

Sample from the elicited distributions

Description

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

Usage

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

## 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)


[Package SHELF version 1.10.0 Index]