Learn R Programming

pbox (version 0.1.8)

gen_scenario: Generate Scenarios

Description

Internal method to Generate scenarios based on parameter list variations.

Usage

gen_scenario(params = "list")

# S4 method for ANY gen_scenario(params = "list")

Value

Nested list of scenarios.

Arguments

params

List of parameters where each parameter can vary across scenarios.

Examples

Run this code
some_distr<-list(A=list(mu = 31.07, sigma = 0.28),
B=list(mu = c(34.4,31.4,25.6), sigma = 0.98, nu = 1.7),# note mu!
C=list(mu = 31.4, sigma = 0.34),
D=list(mu = 25.6, sigma = 0.24))
gen_scenario(some_distr)

Run the code above in your browser using DataLab