calc_score_test: Function to calculate the score test for given expected...

Description Usage Arguments Value

Description

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.

Usage

1

Arguments

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

Value

the score test statistic calculated from M1 and M2


Struglab/RVS documentation built on May 9, 2019, 3:11 p.m.