Return number of iterations for iterative models
Returns the number of iterations for iterative models. The default
method assumes presence of a component iterations
in x
.
nIter(x, ...) ## Default S3 method: nIter(x, ...)
This is a generic function. The default method returns the component
x$iterations
.
numeric, number of iterations. Note that ‘iteration’ may mean different things for different optimizers.
Ott Toomet
## 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) nIter(a)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.