rand_elicitation: Generate random values of an elicitation object

Description Usage Arguments Value Examples

Description

Generate random values of an elicitation object

Usage

1
2
3
4
5
6
7
8
rand_elicitation(elc, n = 1, ...)

## S3 method for class 'elc.input'
rand_elicitation(elc, n = 1)

## S3 method for class 'elc.agg'
rand_elicitation(elc, n = 1, method = c("mixture",
  "average"), use = NULL)

Arguments

elc

an elication object elc.input or elc.agg

n

number of samples

...

optional arguments

method

"mixture" or "average" see below

use

sampled indices if mixture applied

Value

a vector of sample values

Examples

1
2
3
4
5
6
7
8
9
expert1 <- input_norm(c(10, 2))
expert2 <- input_gamma(c(0.1, 0.01))

# Single expert
summary(rand_elicitation(expert1, 100))

# Aggregated expert
experts <- aggregate_elicitations(list(expert1, expert2))
summary(rand_elicitation(experts, 100))

Sheffield-Diffusion-Curve/DCGen documentation built on May 30, 2019, 1:35 p.m.