dr.weights(formula, data = list(), subset, na.action = na.fail,
covmethod = "mve", sigma=1, nsamples=NULL, ...)
robust.center.scale(x, method,... )method
to the function cov.rob in the required package
lqs. The choices are "classical",
"mve" and "mcd". Arguments are differentcov.robweights.only to T on the call to dr, then only the
list of weights will be returned.dr, lqsdata(ais)
w1 <- dr.weights(~ Ht +Wt +RCC, data = ais)
m1 <- dr(LBM~Ht+Wt+RCC,data=ais,weights=w1)Run the code above in your browser using DataLab