rnlm: Restricted 'nlm'

Description Usage Arguments

View source: R/rnlm.R

Description

A wrapper for nlm that puts a very large number wherever the objective function does not exist.

Usage

1
rnlm(f, p, in.range = NULL, lrg.number = 99999999, ign.error = FALSE, ...)

Arguments

f

Function to minimize

p

Starting point for the minimization

in.range

A function that takes the argument of f and returns TRUE if that value of the parameter is in the support of f, and returns FALSE if not.

lrg.number

The large number that's put overtop of the objective function outside of its support.

ign.error

Sometimes nlm will throw an error (for example, if it encounters numbers that are too big). Set this argument to TRUE to have NA returned in the case of an error (and allow your code to keep running afterwards).

...

Other arguments to pass to nlm.


vincenzocoia/copsupp documentation built on Aug. 23, 2020, 7:37 a.m.