\HeaderA{update-methods}{Methods for Function `update' in Package `stats4'}{update.Rdash.methods}
\aliasA{update,ANY-method}{update-methods}{update,ANY.Rdash.method}
\aliasA{update,mle-method}{update-methods}{update,mle.Rdash.method}
\keyword{methods}{update-methods}
\begin{Description}\relax
Update \code{"mle"} objects.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S4 method for signature 'mle':
update(object, ..., evaluate = TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] An existing fit.
\item[\code{...}] Additional arguments to the call, or arguments with
changed values. Use \code{name=NULL} to remove the argument \code{name}.
\item[\code{evaluate}] If true evaluate the new call else return the call.
\end{ldescription}
\end{Arguments}
\begin{Section}{Methods}
\describe{

\item[object = "ANY"] Generic function: see \code{\LinkA{update}{update}}.

\item[object = "mle"] Update a fit.
}
\end{Section}
\begin{Examples}
\begin{ExampleCode}
x <- 0:10
y <- c(26, 17, 13, 12, 20, 5, 9, 8, 5, 4, 8)
ll <- function(ymax=15, xhalf=6)
    -sum(stats::dpois(y, lambda=ymax/(1+x/xhalf), log=TRUE))
fit <- mle(ll)
## note the recorded call contains ..1, a problem with S4 dispatch
update(fit, fixed=list(xhalf=3))
\end{ExampleCode}
\end{Examples}

