refit {fxregime} | R Documentation |
Generic function for re-fitting a models on various subsets or re-weighted data sets.
refit(object, ...)
object |
an object. |
... |
arguments passed to methods. |
refit
is a new generic function for re-fitting a certain
model object on multiple versions of a data set (and is hence
different from update
). Applications are partitioned/segmented
models where the same type of model should be re-fitted on each
sub-sample or partition. See fxregimes
for such an example. Another application would be re-weighted
models such as in mixture models.
The generic is similar to the one provided in modeltools (and should fulfill the same purpose). To avoid dependence on this package, it is also provided here.