\HeaderA{refit}{Refitting Models}{refit}
\keyword{regression}{refit}
\begin{Description}\relax
Generic function for refitting a models on various subsets or
reweighted data sets.
\end{Description}
\begin{Usage}
\begin{verbatim}
  refit(object, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] an object.
\item[\code{...}] arguments passed to methods.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\code{refit} is a new generic function for refitting a certain
model object on multiple versions of a data set (and is hence
different from \code{update}). Applications are partitioned/segmented
models where the same type of model should be refitted on each
sub-sample or partition. See \code{\LinkA{fxregimes}{fxregimes}}
for such an example. Another application would be reweighted
models such as in mixture models.

The generic is similar to the one provided in \pkg{modeltools}
(and should fulfill the same purpose). To avoid dependence on
this package, it is also provided here.
\end{Details}
\begin{SeeAlso}\relax
\code{\LinkA{fxregimes}{fxregimes}}
\end{SeeAlso}

