# load the dataset
data(iris2D)
# usage of the default method
set.seed(9)
outdef <- sigb_uni_ln(x = iris2D[,-ncol(iris2D)], y = iris2D[,ncol(iris2D)],
level = c(0.1, 0.2, 0.3))
# show results
summary(outdef, showid = TRUE)
plot(outdef)
# usage of the method for class formula
set.seed(9)
outfrm <- sigb_uni_ln(formula = Species ~ ., data = iris2D,
level = c(0.1, 0.2, 0.3))
# check the match of noisy indices
identical(outdef$idnoise, outfrm$idnoise)
Run the code above in your browser using DataLab