create_param_grid_fractional_factorial: Create param grid

View source: R/grid_functions.R

create_param_grid_fractional_factorialR Documentation

Create param grid

Description

Creates a parameter grid. For each variable, varies the value of that variable while holding the other variables constant at a specified value.

Usage

create_param_grid_fractional_factorial(varying_values, baseline_values)

Arguments

varying_values

a named list giving the values over which to vary the variables

baseline_values

the baseline values of the variables; the variables take this value when not varying

Value

a parameter grid

Examples

varying_values <- list(x = seq(-2,2,0.1),
y = seq(0,2,0.1),
z = c("cond1", "cond2"))
baseline_values <- list(x = 0, y = 0.5, z = "cond1")
param_df <- create_param_grid_fractional_factorial(varying_values, baseline_values)

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