map_precisely: Calculate with precisely functions across values

Description Usage Arguments Value Examples

View source: R/map_precisely.R

Description

map_precisely() is a wrapper around tidyr::crossing() and purrr::pmap_dfr() to give a set of values to any of the calculation functions in precisely. All possible combinations of the values are passed to the function, returning a tibble where each row is the result for each combination.

Usage

1

Arguments

.f

a function in precisely

...

arguments passed to .f. All possible combinations of argument values are given to the function.

Value

a tibble

Examples

1
2
3
4
5
6
7
map_precisely(
  n_risk_difference,
  precision = seq(from = .02, to = .20, by = .005),
  exposed = c(.2, .4),
  unexposed = c(.1, .3),
  group_ratio = 1
)

precisely documentation built on Oct. 10, 2021, 9:07 a.m.