inst/work/test-lts.R

detach(name="package:fsdaR", unload=TRUE)

library(fsdaR)
data(hbk, package="robustbase")

## 1. All three work with default arguments
## h can be between n/2 and n-1 [38 and 74]
## bdp is greater than 0 and less or equal to 0.5
(out <- fsreg(Y~., data=hbk, method="LTS"))

Try the fsdaR package in your browser

Any scripts or data that you put into this service are public.

fsdaR documentation built on March 31, 2023, 8:18 p.m.