extract_distribution {spdesign}R Documentation

Extract distributions

Description

This function will locate and extract the the distributions for Bayesian priors and random parameters as specified in the design. The output is used to create the matrix of correct draws for priors and parameters.

Usage

extract_distribution(string, type)

Arguments

string

A single character string or list of character strings with a single or multiple utility functions

type

A string indicating the type: prior or param

Details

IMPORTANT: The function will silently drop duplicates.

Value

A named vector of priors or parameters where the type of distribution is given by a character letter: "normal", "lognormal", "uniform" or "triangular"


[Package spdesign version 0.0.4 Index]