maximType: Type of Minimization/Maximization

Description Usage Arguments Value Author(s) See Also Examples

View source: R/maximType.R

Description

Returns the type of optimization as supplied by the optimisation routine.

Usage

1

Arguments

x

object of class 'maxim' or another object which involves numerical optimisation.

Value

A text message, describing the involved optimisation algorithm

Author(s)

Ott Toomet

See Also

maxNR

Examples

1
2
3
4
5
6
7
8
## maximize two-dimensional exponential hat.  True maximum c(2,1):
f <- function(a) exp(-(a[1] - 2)^2 - (a[2] - 1)^2)
m <- maxNR(f, start=c(0,0))
coef(m)
maximType(m)
## Now use BFGS maximisation.
m <- maxBFGS(f, start=c(0,0))
maximType(m)

Example output

Loading required package: miscTools

Please cite the 'maxLik' package as:
Henningsen, Arne and Toomet, Ott (2011). maxLik: A package for maximum likelihood estimation in R. Computational Statistics 26(3), 443-458. DOI 10.1007/s00180-010-0217-1.

If you have questions, suggestions, or comments regarding the 'maxLik' package, please use a forum or 'tracker' at maxLik's R-Forge site:
https://r-forge.r-project.org/projects/maxlik/
[1] 2 1
[1] "Newton-Raphson maximisation"
[1] "BFGS maximization"

maxLik documentation built on July 27, 2021, 1:07 a.m.