returnMessage: Information about the optimisation process

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/returnMessage.R

Description

This function returns a short message, summarising the outcome of the statistical process, typically optimisation. The message should describe either the type of the convergence, or the problem. returnMessage is a generic function, with methods for various optimisation algorithms.

Usage

1
2
3
4
5
returnMessage(x, ...)
## S3 method for class 'maxim'
returnMessage(x, ...)
## S3 method for class 'maxLik'
returnMessage(x, ...)

Arguments

x

object, should orginate from an optimisation problem

...

further arguments to other methods

.

Details

The default methods returns component returnMessage.

Value

Character string, the message describing the success or failure of the statistical procedure.

Author(s)

Ott Toomet, otoomet@ut.ee

See Also

returnCode, maxNR

Examples

1
2
3
4
5
6
7
8
## maximise the exponential bell
f1 <- function(x) exp(-x^2)
a <- maxNR(f1, start=2)
returnMessage(a) # should be success (1 or 2)
## Now try to maximise log() function
f2 <- function(x) log(x)
a <- maxNR(f2, start=2)
returnMessage(a) # should give a failure (4)

EBukin/maxLik-dev documentation built on May 6, 2019, 11:21 a.m.