Description Usage Arguments Details Value Author(s) Examples
Compute test statistic X3, weighted geometric mean of Z_a and Z_d
1 |
Z |
n x 2 matrix of Z scores; Z[,1]=Z_d, Z[,2]=Z_a |
pars |
set of parameters of full model |
tau |
value of tau used to compute alpha. Overrides parameter pars if set |
sigma |
value of sigma used to compute alpha. Overrides parameter pars if set |
alpha |
value of alpha set directly. Overrides parameters tau, sigma and pars if set. |
Defined as X3=Z_d^(alpha) Z_a^(1-alpha). Alpha is chosen to prioritise SNPs with high Z_d values (ie separating subtypes) over those with high Z_a (associated with phenotype.
Parameter alpha may be specified directly, or a 'good' value may be chosen from parameters. The value is chosen, given tau and sigma values, such that the points (tau,1) and (1,sigma) have the same value of X3. If no parameters are set, alpha defaults to 0.5. The parameter alpha is defined as a global variable at the end of the function.
vector of values of X3 and set alpha as a global variable
James Liley
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.