Sreg_control {fsdaR} | R Documentation |
Creates an Sreg_control
object
Description
Creates an object of class Sreg_control
to be used with the fsreg()
function,
containing various control parameters for calling the MATLAB function Sreg()
.
Usage
Sreg_control(intercept = TRUE, bdp = 0.5,
rhofunc = c("bisquare", "optimal", "hyperbolic", "hampel", "mdpd", "AS"),
rhofuncparam, nsamp = 1000, refsteps = 3, reftol = 1e-06,
refstepsbestr = 50, reftolbestr = 1e-08,
minsctol = 1e-07, bestr = 5,
conflev, msg = TRUE, nocheck = FALSE, plot = FALSE)
Arguments
intercept |
Indicator for constant term. Scalar. If |
bdp |
Breakdown point. It measures the fraction of outliers the algorithm should resist. In this case any value greater than 0 but smaller or equal than 0.5 will do fine. Note that given bdp nominal efficiency is automatically determined. |
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) |
nsamp |
Number of subsamples which will be extracted to find the robust estimator,
scalar. If |
refsteps |
Number of refining iterations in each subsample (default is |
reftol |
Tolerance for the refining steps. The default value is 1e-6 |
refstepsbestr |
Scalar defining number of refining iterations for each best subset (default = 50). |
reftolbestr |
Tolerance for the refining steps for each of the best subsets. The default value is |
minsctol |
Value of tolerance for the iterative procedure for finding the minimum
value of the scale for each subset and each of the best subsets
(It is used by subroutine |
bestr |
Defins the number of "best betas" to remember from the subsamples.
These will be later iterated until convergence (default 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 |
msg |
Controls whether to display or not messages on the screen If |
nocheck |
Check input arguments, scalar. If |
plot |
Plot on the screen. Scalar. If |
Details
Creates an object of class Sreg_control
to be used with the fsreg()
function,
containing various control parameters.
Value
An object of class "Sreg_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="S", control=Sreg_control(bdp=0.25, nsamp=500)))
## End(Not run)