fwdsco(formula, data, nsamp = "best", lambda = c(-1, -0.5, 0, 0.5, 1), x = NULL, y = NULL, intercept = TRUE, na.action, trace = TRUE)
lmsreg
. This argument allows to control how many subsets areused in the Least Median of Squares regression. The choices are: the number of samples or "best"
(the default) or "exact"
or "sample"
. For details see lmsreg
.NA
's. The default is set by the na.action
setting of options
, and is na.fail
if that is unset. The default is na.omit
.TRUE
a message is printed for every ten iterations completed during the forward search."fwdsco"
with the following components:
summary.fwdsco
, plot.fwdsco
, fwdlm
, fwdglm
.
data(wool)
mod <- fwdsco(y ~ x1 + x2 + x3, data = wool)
summary(mod)
plot(mod, plot.mle=FALSE)
plot(mod, plot.Sco=FALSE, plot.Lik=TRUE)
Run the code above in your browser using DataLab