get_pvalues<- function(tml, eigenvalues){
pfull <- imhof(tml, eigenvalues)$Qq
psb <- imhof(tml, rep(mean(eigenvalues), length(eigenvalues)))$Qq
peba2 <- imhof(tml, eigen_block(eigenvalues, 2))$Qq
peba4 <- imhof(tml, eigen_block(eigenvalues, 4))$Qq
pwl <- scaled_F(tml, eigenvalues)
return(c(sb=psb, eba2=peba2, eba4=peba4, ebafull=pfull, wl=pwl))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.