MULAOVp <-
function(x,J=NULL,p=NULL,tr=.2){
#
# Do Multivariate ANOVA with trimmed means using
# Johansen's method
#
# x is assumed to have list mode with J=number of groups
# x[[j]] is an n_j by p matrix
#
alval<-c(1:999)/1000
for(i in 1:999){
irem<-i
Qa<-MULtr.anova(x,J=J,p=p,tr=tr,alpha=alval[i])
if(Qa$test.stat>Qa$crit.value)break
}
list(test.stat=Qa$test.stat,p.value=alval[i])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.