R/pPval.r

Defines functions pPval

Documented in pPval

pPval <- function(q, u, theta, sigma2){
    res <- rep(NA, length(q))
    for (j in 1:length(q)){
	   res[j] <- try(integrate(dPval, lower = 0, upper = q[j], u, theta, sigma2)$value, silent = TRUE)
	   if(is.numeric(res[j]) == FALSE){res[j] <- 0.5}
	  }
    return(res)
}

Try the selectMeta package in your browser

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

selectMeta documentation built on April 11, 2025, 5:43 p.m.