Title: | Argument Table Generation for Sensitivity Analysis |
---|---|
Description: | Simplified scenario testing and sensitivity analysis, redesigned to use packages 'future' and 'furrr'. Provides functions for generating function argument sets using one-factor-at-a-time (OFAT) and (sampled) permutations. |
Authors: | Michael C Koohafkan [aut, cre] |
Maintainer: | Michael C Koohafkan <[email protected]> |
License: | GPL (>= 3) |
Version: | 3.1-0 |
Built: | 2025-01-01 04:05:53 UTC |
Source: | https://github.com/mkoohafkan/reval |
This package provides functions to generate argument tables for scenario testing and sensitivity analysis with R.
Generate an argument table based on OFAT.
args_ofat(...)
args_ofat(...)
... |
Named arguments to a function. |
A tibble of argument combinations.
args_ofat(x = 1:5, y = 1:3) args_ofat(x = 1:3, y = 1:3, z = 1:3)
args_ofat(x = 1:5, y = 1:3) args_ofat(x = 1:3, y = 1:3, z = 1:3)
Generate an argument table based on permutations.
args_permute(..., .n)
args_permute(..., .n)
... |
Named arguments to a function. |
.n |
the number of argument permutations to evaluate (sampling without replacement). If missing, all possible permutations are returned. |
A tibble of argument combinations.
args_permute(x = 1:5, y = 1:2) args_permute(x = 1:10, y = 1:10, z = 1:10, .n = 10)
args_permute(x = 1:5, y = 1:2) args_permute(x = 1:10, y = 1:10, z = 1:10, .n = 10)
Generate an argument table from a set of arguments, following the standard rules for vector recycling in R.
args_set(...)
args_set(...)
... |
Named arguments to a function. |
A tibble of argument combinations.
args_set(x = 1:10, y = 1:10) args_set(x = 1:10, y = 1:5, z = 1:2) # mismatched argument lengths will generate a warning ## Not run: args_set(x = 1:10, y = 1:3) ## End(Not run)
args_set(x = 1:10, y = 1:10) args_set(x = 1:10, y = 1:5, z = 1:2) # mismatched argument lengths will generate a warning ## Not run: args_set(x = 1:10, y = 1:3) ## End(Not run)