sampleFit: Sample from the elicited distributions

View source: R/sampleFit.R

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


SHELF documentation built on Sept. 11, 2024, 6:54 p.m.