pi0_model | R Documentation |
pi0_model
helps generate the model for the proportion of truly null tests.
For more details, refer to the vignette.
pi0_model(z, indep_snps = NULL, basis.df = 3, knots = NULL)
z |
|
indep_snps |
|
basis.df |
|
knots |
|
We note that this function is specifically designed for informative p-values and other complex models should be created outside this function.
A list with the following entries:
fmod: model formula
zt: matrix of rank-transformed informative variables
Andrew Bass
sffdr
data(bmi)
p <- sumstats$bmi
z <- as.matrix(sumstats[, -1])
# For p-values, you want to specify the lower quantiles
fmod <- pi0_model(z, knots = c(0.005, 0.01, 0.025, 0.05, 0.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.