Description Usage Arguments Details Value Author(s) Examples
Fit a specific two Guassian mixture distribution to a set of P or Z values.
1 2 |
P |
numeric vector of observed data, either p-values or z-scores. If rho=0, should be one-dimensional vector; if rho is set, should be bivariate observations (P,Q) |
pars |
initial values for parameters |
weights |
optional weights for parameters |
sigma_range |
range of possible values for sigma (closed interval). Default [1,100] |
Assumes Z ~ N(0,1) with probability pi0, Z ~ N(0,sigma^2) with probability 1-pi0
Returns MLE for pi0 and sigma. Uses R's optim function. Can weight observations.
a list containing parameters pars, likelihoods under h1 (Z distributed as above), likelihood under h0 (Z~N(0,1)) and likelihood ratio lr.
James Liley
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.