# NOT RUN {
ns <- c(10, 5, 23)
Ylist <- createS(ns, p = 15, topology = "banded", dataset = TRUE)
# Use the identity target matrix for each class
Tlist <- replicate(length(ns), diag(15), simplify = FALSE)
# Do the test
lm <- matrix(10, 3, 3)
diag(lm) <- 1
ft <- fused.test(Ylist, Tlist, lambda = lm,
n.permutations = 500)
print(ft)
# Summary spits out a bit more information
summary(ft)
# The returned object can alo be plotted via
hist(ft)
# or via the alias
plot(ft)
# Customization and parameters work a usual:
hist(ft, col = "steelblue", main = "Null distribution", add.extra = FALSE,
xlab = "Score statistic", freq = FALSE)
# }
Run the code above in your browser using DataLab