<!doctype s-function-doc system "s-function-doc.dtd" [
<!entity % S-OLD "INCLUDE">
]
>
<s-function-doc>

<s-topics>
<s-topic>glmRob.misclass.control</s-topic>
</s-topics>

<s-title>
Control for Misclassification Robust GLM Estimator
</s-title>

<s-description>
Allows users to set parameters for <s-expression>glmRob</s-expression>.
</s-description>

<s-usage>
<s-old-style-usage>
glmRob.misclass.control(mc.gamma = 0.01, mc.maxit = 30, mc.trc = F, mc.tol
= 0.001, mc.initial = NULL, ...)
</s-old-style-usage>
</s-usage>

<s-args-optional>
<s-arg name="mc.gamma">
a real number between 0 and 1 that represents the probability of
misclassification of a response variable.
</s-arg>

<s-arg name="mc.maxit">
maximum number of iterations.
</s-arg>

<s-arg name="mc.trc">
a logical value indicating whether a trace of the current parameter values
is printed to the screen while the algorithm iterates.
</s-arg>

<s-arg name="mc.tol">
convergence threshold.
</s-arg>

<s-arg name="mc.initial">
a vector of initial values to start the iterations. If ommited, the
coeficients resulting from a non-robust glm fit are used.
</s-arg>
</s-args-optional>

<s-value>
a list is returned, consisting of these parameters packaged to be used by
<s-expression>glmRob()</s-expression>. The values for
<s-expression>glmRob.misclass.control()</s-expression> can be supplied
directly in a call to <s-expression>glmRob()</s-expression>. These values
are filtered through <s-expression>glmRob.misclass.control()</s-expression>
inside <s-expression>glmRob()</s-expression>.
</s-value>

<s-see>
<s-function name="glmRob.sgm">glmRob</s-function>.
</s-see>

<s-examples>
<s-example type = text>
# The following are equivalent
glmRob(formula, family, fit.method = 'misclass',
misclass.control=glmRob.misclass.control(mc.trace = T)
glmRob(formula, family, fit.method = 'misclass', mc.maxit = 50, mc.tol =
1e-8)
</s-example>
</s-examples>

<s-keywords>
<s-keyword>robust</s-keyword>
<s-keyword>regression</s-keyword>
<s-keyword>librobust</s-keyword>
</s-keywords>

<s-docclass>
function
</s-docclass>

</s-function-doc>
