Description Usage Arguments Details Value Author(s) Examples
Fit a specific one-dimensional Gaussian mixture distribution to weighted SNP data
1 2 |
Z |
a vector of length n |
pars |
vector containing initial values of |
weights |
SNP weights to adjust for LD; output from LDAK procedure |
C |
a term C log( |
sgm |
force |
... |
other parameters passed to R's |
Z_a,Z_d ~ pi0 N(0,1) + (1-pi0) N(0,s^2)
The model is characterised by the vector pars
=(pi0
,s
). Under the null hypothesis that all SNPs are null, pi0=0.5, s=1.
This function finds the maximum pseudo-likelihood estimators for the paramaters of these three Gaussians, and the mixing parameters representing the proportion of SNPs in each category.
a list of three objects: pars
is the vector of fitted parameters under H1, h1value
is the pseudo-likelihood under H1, h0value
is the pseudolikelihood under H0.
Chris Wallace and James Liley
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.