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