create_param_grid_two_way_factorial: Create param grid (two way factorial)

View source: R/grid_functions.R

create_param_grid_two_way_factorialR Documentation

Create param grid (two way factorial)

Description

Create param grid (two way factorial)

Usage

create_param_grid_two_way_factorial(param_vals, arm_names, arm_param)

Arguments

param_vals

a named list of length two, giving the values to vary over

arm_names

the names of the arms

arm_param

the parameter to use to assign the arm names

Value

a parameter grid

Examples

param_vals <- list(g_perturbation = seq(0.5, 6, 0.5), pi = seq(0.1, 0.3, 0.1))
arm_names <- c("pi_small", "pi_intermediate", "pi_big")
arm_param <- "pi"
create_param_grid_two_way_factorial(param_vals, arm_names, arm_param)

timothy-barry/simulatr documentation built on Sept. 6, 2024, 7:10 p.m.