##############################################################################
p.adjust.np <- function(tests, method = "BH")
{
for(test.name in paste("pvals.np", c("AIC","BIC"), sep = "."))
for (i in seq(ncol(tests[[test.name]])))
tests[[test.name]][, i] <- p.adjust(tests[[test.name]][, i], method = method)
tests
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.