Description Usage Arguments Details Value Author(s) References Examples
View source: R/roeder_wasserman_weight.R
Compute sum of weights for a given value of c, the function of Langrangian multiplier
1 2 | weightSum_by_c(c, m, gamma = 0.05, alpha = 0.05, group = 5L, tail = 1L,
effect_hat)
|
c |
Numeric, a constant value (function of Langrangian multiplier) |
m |
Integer, number of the hypothesis tests |
gamma |
Numeric value of smoothing parameter |
alpha |
Numeric value of the Significance level |
group |
Integer, number of groups |
tail |
Integer (1 or 2), right-tailed or two-tailed hypothesis test. |
effect_hat |
Numeric, estimated effect sizes |
None
sum weight
Numeric, sum of the weights for each C
Mohamad S. Hasan, shakilmohamad7@gmail.com
Roeder, Kathryn, and Larry Wasserman. "Genome-wide significance levels and weighted hypothesis testing." Statistical science: a review journal of the Institute of Mathematical Statistics 24.4 (2009): 398. www.stat.cmu.edu/~roeder/publications/statsci.pdf
1 2 3 | cc = seq(-10, 10, .05)
et <- seq(0, 3, .5)
wgtSum_by_c <- sapply(cc, weightSum_by_c, m = 10000, effect_hat = et)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.