Performs a local search to find the MLE, assuming the MLE is an interior point of the support and that an initial guess `theta0` that is near the MLE is provided. Use a global search method like `sim_anneal` to find a good initial guess.
Usage
mle_local_search(dir, theta0, loglike = NULL, options = list())Arguments
- dir
function, promising direction function
- theta0
numeric, initial guess
- options
list, options for the local search, see function description.
Value
an `mle` object with additional attributes `iter` and `converged` and optionally `path` if `trace` is TRUE.
Fields
supfunction, domain of support for log-likelihood
etanumeric, learning rate, defaults to 1
max_iterinteger, maximum number of iterations, defaults to 1000
max_iter_lsinteger, maximum number of iterations for the line search, defaults to 1000
abs_tolnumeric, tolerance for convergence, defaults to NULL (use rel_tol instead)
rel_tolnumeric, relative tolerance for convergence, defaults to 1e-5
rnumeric, backtracking line search parameter, defaults to 0.5
projfunction, projection function to enforce domain of support
normfunction, distance measure for convergence checks, defaults to the to the infinity norm.
debuglogical, output debugging information if TRUE; default FALSE
tracelogical, if TRUE store the path of the search in the `path` attribute of the output; default FALSE
line_searchlogical, if TRUE, perform a line search; default TRUE in this case, learning rate `eta` refers to the maximum step size that can be taken per iteration.
debug_freqinteger, frequency of debug output, defaults to 1