# NOT RUN {
n <- 10L
mx <- 0
sigma <- 1
# Two different models for the two populations
x <- rnorm(n = n, mean = mx, sd = sigma)
x <- as.list(x)
delta <- 10
my <- mx + delta
y <- rnorm(n = n, mean = my, sd = sigma)
y <- as.list(y)
stat_hotelling(c(x, y), 1:n)
stat_t(c(x, y), 1:n)
stat_mean(c(x, y), 1:n)
# }
Run the code above in your browser using DataLab