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