Description Usage Arguments Value
This function calcuates the score test T=S^2/var(S), for a given j, S_j=∑_i (Y_i-bar(Y))E(G_{ij}|D_{ij})=∑_{case}(1-bar(Y))E(G|D)-∑_{cont}bar(Y)E(G|D). It is called in regScore_perm
.
1 | calc_score_test(M1, M2)
|
M1 |
a vector of the expected genotype probability for case E(G_{ij}|D_{ij}) on one snp |
M2 |
a vector of the expected genotype probability for control E(G_{ij}|D_{ij}) on one snp |
the score test statistic calculated from M1 and M2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.