Calculate Residual Variance
ResidVar(y, X)
y
(n x 1) Numeric phenotype vector.
X
(n x q) Numeric covariate matrix.
Scalar residual variance.