Title: | Argument Table Generation for Sensitivity Analysis |
Version: | 3.1-0 |
Author: | Michael C Koohafkan [aut, cre] |
Maintainer: | Michael C Koohafkan <michael.koohafkan@gmail.com> |
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. |
Encoding: | UTF-8 |
URL: | https://github.com/mkoohafkan/reval |
BugReports: | https://github.com/mkoohafkan/reval/issues |
License: | GPL (≥ 3) |
Depends: | R (≥ 4.1) |
Imports: | purrr (≥ 0.3), dplyr (≥ 1.0), rlang (≥ 0.4) |
Suggests: | future(≥ 1.21), furrr (≥ 0.2), knitr (≥ 1.33), rmarkdown (≥ 2.8), ggplot2 (≥ 3.3), tidyr (≥ 1.1), rivr (≥ 1.2) |
VignetteBuilder: | knitr |
RoxygenNote: | 7.1.2 |
NeedsCompilation: | no |
Packaged: | 2022-06-29 06:29:47 UTC; michael |
Repository: | CRAN |
Date/Publication: | 2022-06-29 06:50:02 UTC |
Repeated Function Evaluation For Sensitivity Analysis
Description
This package provides functions to generate argument tables for scenario testing and sensitivity analysis with R.
One Factor At a Time Argument Set
Description
Generate an argument table based on OFAT.
Usage
args_ofat(...)
Arguments
... |
Named arguments to a function. |
Value
A tibble of argument combinations.
Examples
args_ofat(x = 1:5, y = 1:3)
args_ofat(x = 1:3, y = 1:3, z = 1:3)
Permutation Argument Set
Description
Generate an argument table based on permutations.
Usage
args_permute(..., .n)
Arguments
... |
Named arguments to a function. |
.n |
the number of argument permutations to evaluate (sampling without replacement). If missing, all possible permutations are returned. |
Value
A tibble of argument combinations.
Examples
args_permute(x = 1:5, y = 1:2)
args_permute(x = 1:10, y = 1:10, z = 1:10, .n = 10)
Argument Set
Description
Generate an argument table from a set of arguments, following the standard rules for vector recycling in R.
Usage
args_set(...)
Arguments
... |
Named arguments to a function. |
Value
A tibble of argument combinations.
Examples
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)