outlierSIR is a sampling method allowing to detect outlier or extreme individuals.
There is currently only one way to install outlierSIR
devtools
r
# install.packages("outlierSIR")
devtools::install_github("hlorenzo/outlierSIR")
Once that package is installed, you can test it on the ozone dataset
r
data(ozone)
# MONO method
output <- outlierSIR(ozone[,-c(1,12,13)],ozone[,1],method="MONO")
# TTR method
# output <- outlierSIR(ozone[,-c(1,12,13)],ozone[,1],method="TTR",
# plotBandwidthEst = TRUE,kernel="normal",nb.replications = 100)
# BOOT method
# output <- outlierSIR(ozone[,-c(1,12,13)],ozone[,1],method="BOOT",
# plotBandwidthEst = TRUE,kernel="normal",nb.replications = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.