Learn R Programming

pbox (version 0.1.8)

scenario_pbox: Scenario Analysis

Description

Performs scenario analysis by modifying underlying parameters of a pbox object. Query the probabilistic space under different scenarios with different combinations of parameters for a single query.

Usage

scenario_pbox(
  pbx,
  param_list = "list",
  sigma = 0.05,
  range = seq(-3, 3, 1),
  ...
)

# S4 method for pbox scenario_pbox( pbx, param_list = "list", sigma = 0.05, range = seq(-3, 3, 1), ... )

Value

Named list of results from each scenario evaluation.

Arguments

pbx

object of class pbox

param_list

List specifying which parameters to modify.

sigma

Standard deviation for parameter deviations, defaulting to 0.05.

range

Range of deviation multipliers, default is seq(-3, 3, 1).

...

Additional arguments passed to qpbox.

Examples

Run this code
  data("SEAex")
  pbx <- set_pbox(SEAex)
  scenario_pbox(pbx,mj = "Vietnam:31 & avgRegion:26", param_list = list(Vietnam="mu"))

Run the code above in your browser using DataLab