LXS_control {fsdaR} | R Documentation |
Creates an LSX_control
object
Description
Creates an object of class LXS_control
to be used with the fsreg()
function,
containing various control parameters.
Usage
LXS_control(intercept = TRUE, lms, h, bdp, nsamp, rew = FALSE, conflev = 0,
msg = TRUE, nocheck = FALSE, nomes = FALSE, plot = FALSE)
Arguments
intercept |
Indicator for constant term. Scalar. If |
lms |
Criterion to use to find the initial subset to initialize the search
(LMS, LTS with concentration steps, LTS without concentration steps
or subset supplied directly by the user). The default value is 1
(Least Median of Squares is computed to initialize the search).
On the other hand, if the user wants to initialze the search with
LTS with all the default options for concentration steps then lms=2.
If the user wants to use LTS without concentration steps, lms can be
a scalar different from 1 or 2. If lms is a list it is possible
to control a series of options for concentration steps (for more
details see option
|
h |
The number of observations that have determined the least trimmed squares
estimator, scalar. |
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. If on the other hand the purpose is subgroups detection then bdp can be greater than 0.5. In any case however n*(1-bdp) must be greater than p. If this condition is not fulfilled an error will be given. Please specify h or bdp not both. |
nsamp |
Number of subsamples which will be extracted to find the robust estimator,
scalar. If |
rew |
LXS reweighted - if rew=1 the reweighted version of LTS (LMS) is used and the output quantities refer to the reweighted version else no reweighting is performed (default). |
conflev |
Confidence level which is used to declare units as outliers, usually |
msg |
Controls whether to display or not messages on the screen If |
nocheck |
Check input arguments, scalar. If |
nomes |
It controls whether to display or not on the screen messages about estimated time to compute LMS (LTS). If nomes is equal to 1 no message about estimated time to compute LMS (LTS) is displayed, else if nomes is equal to 0 (default), a message about estimated time is displayed. |
plot |
Plot on the screen. Scalar. If |
Details
Creates an object of class FSR_control
to be used with the fsreg()
function,
containing various control parameters.
Value
An object of class "LXS_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 Sreg_control
, MMreg_control
and FSR_control
Examples
## Not run:
data(hbk, package="robustbase")
(out <- fsreg(Y~., data=hbk, method="LMS", control=LXS_control(h=56, nsamp=500, lms=2)))
## End(Not run)