Function that is applied in ICsingleSNP() to calculate a score statistic and p-value for each column of an n*p genotype matrix.
calcScoreStats(x, UgTerm, ggTerm, gtTermCommon, gtHalfL, gtHalfR, solveItt)A 2*1 vector with the test statistic and then p-value.
n*1 vector of genotypes.
n*1 vector multiplier for the score statistic.
n*1 vector multiplier for the Igg term of the variance.
n*p matrix multiplier for the common part of the Igt term of the variance.
n*(nknots+1) matrix multiplier for one half of the unique part of the Igt term of the variance.
n*(nknots+1) matrix multiplier for one half of the unique part of the Igt term of the variance.
p*p inverse of the Itt matrix from ICSKAT_fit_null().