.combine | R Documentation |
This function combines local p
-values to a global p
-value.
.combine(x, method = "simes")
x |
local |
method |
character |
These functions return a numeric vector of length p
(main effects),
or a numeric matrix with p
rows and p
columns
(interaction effects).
Westfall, P. H. (2005). "Combining p-values". Encyclopedia of Biostatistics \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/0470011815.b2a15181")}
# independence
p <- runif(10)
palasso:::.combine(p)
## dependence
#runif <- function(n,cor=0){
# Sigma <- matrix(cor,nrow=n,ncol=n)
# diag(Sigma) <- 1
# mu <- rep(0,times=n)
# q <- MASS::mvrnorm(n=1,mu=mu,Sigma=Sigma)
# stats::pnorm(q=q)
#}
#p <- runif(n=10,cor=0.8)
#combine(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.