drop1.lmRob is used to investigate a robust Linear Model object by
recomputing it, successively omitting each of a number of specified terms.## S3 method for class 'lmRob':
drop1(object, scope, scale, keep, fast = FALSE, ...)formula object describing the terms to be dropped. Typically this argument is omitted, in which case all possible terms are dropped (without breaking hierarchy rules). The scope can also be a character vector of terobject is used."coefficients", "fitted" and "residuals" are allowed. If keep == TRUE, the complete set is TRUE the robust initial estimate (used when fitting each of the reduced models) is replaced by a weighted least squares estimate using the robust weights in object.anova object is constructed, consisting of the term labels, the degrees of freedom, and Robust Final Prediction Errors (RFPE) for each subset model. If keep is missing, the anova object is returned. If keep is present, a list with components "anova" and "keep" is returned. In this case, the "keep" component is a matrix of mode "list", with a column for each subset model, and a row for each component kept.drop1 for class "lmRob".add1,
anova,
drop1,
lmRob.object.data(stack.dat)
stack.rob <- lmRob(Loss ~ ., data = stack.dat)
drop1(stack.rob)Run the code above in your browser using DataLab