dr.weights(formula, data = list(), subset, na.action = na.fail, sigma=1, nsamples=NULL, ...)cov.rob to compute a
robust estimate of the covariance matrix.weights.only to T on the call to dr, then only the
list of weights will be returned.dr, cov.rob data(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