Nothing
maxPvalueLookup <-
function(tbls, int, lookupArray, doublePvalue){
#Instead of calculating the binomial probabilities several times for a more extreme cell,
#calculate the probability once and then combine with other more extreme cells:
xTbls <- tbls[,1]
yTbls <- tbls[,2]
nTbls <- length(xTbls) # Number of 'as or more extreme' tables
prob <- matrix(lookupArray[[1]][xTbls+1,]*lookupArray[[2]][yTbls+1,], ncol=length(int))
prob <- .colSums(prob, nTbls, length(int))
prob <- signif((1+doublePvalue)*prob, 12) #Remove rounding errors and double probabilities if applicable
np <- int[which(prob==max(prob, na.rm=TRUE))]
pvalue <- max(prob, na.rm=TRUE)
return(list(prob=prob, pvalue=pvalue, np=np))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.