maxValue | R Documentation |
Returns the function value at (estimated) maximum.
maxValue(x, ...)
## S3 method for class 'maxim'
maxValue(x, ...)
x |
a statistical model, or a result of maximisation, created
by |
... |
further arguments for other methods |
numeric, the value of the objective function at maximum. In general, it is the last calculated value in case the process did not converge.
Ott Toomet
maxLik
, maxNR
## Estimate the exponential distribution parameter:
t <- rexp(100, 2)
loglik <- function(theta) sum(log(theta) - theta*t)
## Estimate with numeric gradient and numeric Hessian
a <- maxNR(loglik, start=1)
maxValue(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.