fwdlm(formula, data, nsamp = "best", x = NULL, y = NULL, intercept = TRUE, na.action, trace = TRUE)
lmsreg
. This argument allows to control how many subsets are used 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."fwdlm"
with the following components:
"lqs"
object providing the the Least Median of Squares regression fit used to select the starting subset.summary.fwdlm
, plot.fwdlm
, fwdsco
, fwdglm
, lmsreg
.
data(forbes)
plot(forbes, xlab="Boiling point", ylab="100 x log(pressure)")
mod <- fwdlm(y ~ x, data=forbes)
summary(mod)
## Not run: plot(mod)
plot(mod, 1)
plot(mod, 6, ylim=c(-3, 1000))
Run the code above in your browser using DataLab