# NOT RUN {
set.seed(0)
x <- as.data.frame(cbind(
"normal" = rnorm(1000),
"gamma" = rgamma(1000, shape = 2)))
res1 <- stress_wass(type = "mean", x = x, k = 1,
new_means=1)
summary(res1)
## calling stress_RM_w directly
## stressing "gamma"
res2 <- stress_mean_w(x = x,
new_means=2.2, k = 2)
summary(res2)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab