Description Usage Arguments Details Value Author(s) Examples
Fit a specific two Guassian mixture distribution to a set of Z values.
1 2 |
Z |
numeric vector of observed data |
pi0_init |
initial value for |
sigma_init |
initial value for |
tol |
how small a change lhood prompts continued optimization |
maxit |
maximum number of iterations |
Assumes
Z ~ N(0,1) with probability pi0
, Z ~ N(0,1 + sigma
^2) with probability 1-pi0
We define 'true' Z scores as the Z scores that would be obtained if MAF for both groups exactly matched the corresponding MAFs in the population, or equivalently the expected values of Z scores. If 'true' Z scores are distributed following a 'spike and tail' model of 0 with probability pi0
and N(0,sigma
^2) with probability 1-pi0
, then observed Z scores follow the above distribution.
a list containing fitted pi0
, fitted sigma
, and a record of fitted parameters at eachs stage of the E-M algorithm.
Chris Wallace, James Liley
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.