<!doctype s-function-doc system "s-function-doc.dtd" [
<!entity % S-OLD "INCLUDE">
]
>
<s-function-doc>
<s-topics>
<s-topic> fit.models </s-topic>
</s-topics>
<s-title>
Robust and Classical Model Comparison
</s-title>
<s-description>
Provides a method for comparing robust and classical fits for the models
provided in the Robust Library.
</s-description>
<s-usage>
<s-old-style-usage>
fit.models(model, formula=NULL, data, model.list=NULL, ...)
</s-old-style-usage>
</s-usage>
<s-args-required>
<s-arg name=" model ">
A list containing the names of the models as strings.
</s-arg>
<s-arg name=" formula ">
Formula for regression and ANOVA models.
</s-arg>
<s-arg name=" data ">
The data to be fit by the functions in <s-expression>model</s-expression>.
</s-arg>
</s-args-required>
<s-args-optional>
<s-arg name=" model.list ">
Optionally, a list containing the function call for each model may be
provided.  If <s-expression>model.list</s-expression> is present,
<s-expression>model</s-expression>, <s-expression>formula</s-expression>,
and <s-expression>data</s-expression> are ignored.
</s-arg>
<s-arg name=" ... ">
Additional arguments to functions in <s-expression>model</s-expression>.
</s-arg>
</s-args-optional>
<s-value>
A list of class <s-expression>"fit.models"</s-expression> containing the
output of the functions in <s-expression>model</s-expression>.
</s-value>
<s-see>
<s-function name="plot.fit.models1.sgm">plot.fit.models</s-function>,
<s-function name="summary.fit.models1.sgm">summary.fit.models</s-function>.
</s-see>
<s-examples>
<s-example>
fit.lm <- fit.models(list(Classical = "lm", Robust = "lmRob"), Loss~., data =
stack.dat)
</s-example>
<br>
<s-example>
fit.cov <- fit.models(list(Robust = "covRob", MLE = "cov"), data = woodmod.dat)
</s-example>
</s-examples>
<s-keywords>
<s-keyword>
models
</s-keyword>
</s-keywords>
<s-docclass>
function
</s-docclass>
</s-function-doc>
