R/rej.R

Defines functions rej

rej <- function(P, idx, d, alpha = 0.05, method = c("Fisher", "Truncated"), talpha = .2){
	if(method == "Fisher")
		return( ifelse(pchisq(-2*log(P[idx]), 2*d, lower.tail = FALSE) < alpha, TRUE, FALSE) )
	if(method == "Truncated"){
		#print(c(P[idx], d, talpha))
		return( ifelse( truncP(P[idx], d, talpha) < alpha, TRUE, FALSE) )
	}
}

Try the evidenceFactors package in your browser

Any scripts or data that you put into this service are public.

evidenceFactors documentation built on Feb. 20, 2020, 5:07 p.m.