- formula
a formula
of the form y ~ x1 + x2 + ...
.
- data
data frame from which variables specified in
formula
are to be taken.
- subset
an optional vector specifying a subset of observations
to be used in the fitting process.
- weights
an optional vector of weights to be used
in the fitting process. NOT USED YET.
- na.action
a function which indicates what should happen
when the data contain NA
s. The default is set by
the na.action
setting of options
, and is
na.fail
if that is unset. The “factory-fresh”
default is na.omit
. Another possible value is
NULL
, no action. Value na.exclude
can be useful.
- model, x.ret, y.ret
logical
s indicating if the
model frame, the model matrix and the response are to be returned,
respectively.
- contrasts
an optional list. See the contrasts.arg
of model.matrix.default
.
- offset
this can be used to specify an a priori
known component to be included in the linear predictor
during fitting. An offset
term can be included in the
formula instead or as well, and if both are specified their sum is used.
- x
Predictor variables. Matrix. Matrix of explanatory
variables (also called 'regressors') of dimension n x (p-1)
where p denotes the number of explanatory variables
including the intercept.
Rows of X represent observations, and columns represent
variables. By default, there is a constant term in the
model, unless you explicitly remove it using input option
intercept=FALSE
, so do not include a column of 1s in X. Missing
values (NA's) and infinite values (Inf's) are allowed,
since observations (rows) with missing or infinite values
will automatically be excluded from the computations.
- y
Response variable. Vector. Response variable, specified as
a vector of length n, where n is the number of
observations. Each entry in y is the response for the
corresponding row of X.
Missing values (NA's) and infinite values (Inf's) are
allowed, since observations (rows) with missing or infinite
values will automatically be excluded from the
computations.
- bsb
Initial subset - vector of indices. If bsb=0
(default) then
the procedure starts with p units randomly chosen. If bsb is not 0 the search
will start with m0=length(bsb)
.
- intercept
Indicator for constant term. Scalar. If intercept=TRUE
,
a model with constant term will be fitted (default), else,
no constant term will be included.
- monitoring
wheather to perform monitoring for several quantities
in each step of the forward search. Deafault is monitoring=FALSE
.
- control
A control object (S3) containing estimation options, as returned
by FSR_control
. Use the function FSR_control
and see its help page. If the
control object is supplied, the parameters from it
will be used. If parameters are passed also in the invocation statement,
they will override the corresponding elements of the control object.
- trace
Whether to print intermediate results. Default is trace=FALSE
.
- ...
Potential further optional arguments, see the help of the function FSR_control
.