Welcome to ClientVPS Mirrors

bag-whisker-plot

bag-whisker-plot

library(BagWhiskerPlot)
#> Loading required package: MASS
set.seed(1)
n <- 200
clean <- mvrnorm(n, mu = c(0, 0), Sigma = matrix(c(1, 0.6, 0.6, 1), 2))

contam_frac1 <- 0.10
k1 <- floor(n * contam_frac1)
contam1 <- cbind(rnorm(k1, 6, 1), rnorm(k1, -6, 1))
dat_clean <- clean
dat_cont1 <- clean
dat_cont1[1:k1, ] <- contam1

bag_whisker(dat_clean, type1 = 'FDR', q = 0.1, main = "Clean")
#> [1] "Warning: lambda_stat is infinite or zero, or no rejections in multiple testing procedure."
#> [1] "lambda_stat recomputed to contain all data points: 3.05566"
#> [1] "Factor lambda:  3.05566"

bag_whisker(dat_cont1, type1 = 'FDR', q = 0.1,
            main = paste0("Contaminated ", contam_frac1 * 100, "%"))
#> [1] 2.240056
#> [1] "Factor lambda:  2.43645"

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.