MMreg_control {fsdaR} | R Documentation |
Creates an MMreg_control
object
Description
Creates an object of class MMreg_control
to be used with the fsreg()
function,
containing various control parameters for calling the MATLAB function MMreg()
.
Usage
MMreg_control(intercept = TRUE, InitialEst, eff, effshape,
rhofunc = c("bisquare", "optimal", "hyperbolic", "hampel", "mdpd", "AS"),
rhofuncparam, refsteps = 3, tol = 1e-07, conflev,
nocheck = FALSE, Smsg = TRUE, plot = FALSE)
Arguments
intercept |
Indicator for constant term. Scalar. If |
InitialEst |
Starting values of the MM-estimator, a list with the fiollowing
elements: |
eff |
Scalar defining nominal efficiency (i.e. a number between 0.5 and 0.99). The default value is 0.95. |
effshape |
Location or scale efficiency. If |
rhofunc |
Specifies the rho function which must be used to weight the residuals. Possible values are 'bisquare' 'optimal' 'hyperbolic' 'hampel'.
The default is 'bisquare'. |
rhofuncparam |
Additional parameters for the specified rho function. For hyperbolic rho function it is possible to set up the value of k = sup CVC (the default value of k is 4.5). For Hampel rho function it is possible to define parameters a, b and c (the default values are a=2, b=4, c=8) |
refsteps |
Number of refining iterations in each subsample (default is |
tol |
Scalar controlling tolerance in the MM loop. The default value is |
conflev |
Confidence level which is used to declare units as outliers. Usually conflev=0.95, 0.975, 0.99 (individual alpha) or conflev=1-0.05/n, 1-0.025/n, 1-0.01/n (simultaneous alpha). Default value is 0.975 |
nocheck |
Check input arguments, scalar. If |
Smsg |
Controls whether to display or not messages on the screen If |
plot |
Plot on the screen. Scalar. If |
Details
Creates an object of class MMreg_control
to be used with the fsreg()
function,
containing various control parameters.
Value
An object of class "MMreg_control"
which is basically a
list
with components the input arguments of
the function mapped accordingly to the corresponding Matlab function.
Author(s)
FSDA team
See Also
See Also as FSR_control
, MMreg_control
and LXS_control
Examples
## Not run:
data(hbk, package="robustbase")
(out <- fsreg(Y~., data=hbk, method="MM", control=MMreg_control(eff=0.99, rhofunc="optimal")))
## End(Not run)