grid.search: grid.search

Description Usage Arguments

View source: R/fitmethod-gridSearch.R

Description

find the max (or min) of a function by brute-force search through a grid TODO - handle multiple maxima

Usage

1
2
grid.search(grid.vals, func, return.grid = FALSE, cpp = FALSE,
  verbose = FALSE, ...)

Arguments

grid.vals

either a list whose entries are vectors w/ parameter ranges, or a table of parameter values to evaluate

func

the function to maximize

return.grid

if TRUE, return the grid used

cpp

if TRUE, use the c++ code; otherwise, use R's apply()

verbose

print detailed output

...

other args, to be passed along to func


dfeehan/mortfit documentation built on Nov. 14, 2020, 9:04 p.m.