This function implements rare variant test with MIRAGE model for variant set only without gene level information
mirage_vs(
data,
n1,
n2,
gamma = 3,
sigma = 2,
eta.init = 0.1,
max.iter = 10000,
tol = 1e-05,
verbose = TRUE
)
variant count data, a 4 column data frame for 1) locus ID 2) variant count in cases, 3) variant count in control and 4) variant category index for a variant. The 1st column is optional.
sample size in cases.
sample size in controls.
a list of category specific hyper prior shape parameter in Beta distribution for effect size, or a numeric value if all category share the same effect size.
a list of category specific hyper prior scale parameter in Beta distribution for effect size, or a numeric value if all category share the same effect size.
initial value for prior on proportion of risk variants in a variant set.
maximum number of iterations enforcing EM algorithm to stop
threshold of parameter estimate difference to determine the convergence of EM algorithm
Bayes factor of individual variant
Estimate for proportion of risk variants in a variant group
Significant test for eta = 0
posterior probability of variants
# see example at https://xinhe-lab.github.io/mirage/articles/mwe.html