I'm trying to do a variable selection using LTS regression but I encounter with this error.
sigma.full<-summary(ltsreg(y~x1+x2+x3+x4+x5))$scale
Error in summary(ltsreg(y~x1+x2+x3+x4+x5))$scale: $ operator is invalid for atomic vectors
Can someone help me to resolve this error?