mod_t_test: Moderated t-test with standard errors moderated by mixture...

Description Usage Arguments Value Examples

Description

Moderated t-test with standard errors moderated by mixture prior.

Usage

1
mod_t_test(betahat, se, pi, df)

Arguments

betahat

a p vector of observed effect sizes

se

a p*k matrix of moderated standard errors

pi

a p*k matrix of mixture proportions, row sums are 1.

df

a p*k matrix of degrees of freedom

Value

A p vector of p-values testing if the effect sizes are 0.

Examples

1
2
3
4
5
6
# p=10, k=5
betahat = rnorm(10)
se = matrix(abs(rnorm(10*5)), ncol=5)
pi = matrix(rep(0.2,10*5), ncol=5)
df = matrix(rep(11:15,each=10), ncol=5)
mod_t_test(betahat,se,pi,df)

mengyin/vashr documentation built on May 22, 2019, 6:51 p.m.