View source: R/higher_criticism.R
trans_w | R Documentation |
The weight is calculated with the equation: w=1/(a x prior_info+b x mean(prior_info)) and then scaled into mean(w)=1. Here we take a=0.95 and b=0.05.
trans_w(w)
w |
a numeric vector which is the original statistic for weight,need to be non-negative |
a numeric vector of the transfered weight with around mean~1, min~0.05. Missing values in input are transfered into 1
a=c(NA,exp(rnorm(7,0,1))) trans_w(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.