add_neighbours: Add neighbouring parameter values

Description Usage Arguments Value Author(s) Examples

Description

Expand and refine parameter grid for simulation

Usage

1
add_neighbours(scenarios, parameter, radius, points, drop = T)

Arguments

scenarios

matrix with one parameter setting in each line

parameter

list of parameters for which grid points should be added

radius

width of interval to be added around each point in scenarios

points

number of points to fill the interval with

drop

should columns that start with "result" or "select" or be dropped (which may have been added by simulate_batch, or select_results)

Value

object with the same columns as G

Author(s)

Florian Klinglmueller

Examples

1
2
scenarios <- expand.grid(m=c(0,1),s=c(1,2),n=5:10)
neighbourhoods <- add_neighbours(scenarios,c('m','s'),c(.2,.4),4)

floatofmath/casino documentation built on May 16, 2019, 1:21 p.m.