Last chance! 50% off unlimited learning
Sale ends in
add1.lmRob
is used to investigate an lmRob
object by adding to it, in turn, each of a number of specified terms.## S3 method for class 'lmRob':
add1(object, scope=. ~ ., scale, keep, ...)
formula
object describing the terms to be added. This argument is required, and is parsed to produce a set of terms that may be added to the model on their own without breaking the hierarchy rules. The scope
can also be a charaobject
is used."coefficients"
, "fitted"
and "residuals"
are allowed. If keep
is TRUE
, the cadd1
function.keep
is missing, an anova
object corresponding to each superset model implied by object
and scope
; otherwise, a list with components:anova
object corresponding to each superset model implied by object
and scope
."list"
, with a column for each superset model, and a row for each component kept.anova
object is constructed, consisting of the term labels, the degrees of freedom, and Robust Final Prediction Errors (RFPE) for each superset model. This function implements the generic function add1
for lmRob
class objects.
lmRob
,
add1
,
anova
,
drop1
,
lmRob.object
.data(stack.dat)
stack.rob <- lmRob(Loss ~ Water.Temp, data = stack.dat)
add1(stack.rob, . ~ . + Air.Flow + Acid.Conc.)
Run the code above in your browser using DataLab