Added linkFunction to calculation of covariance matrix, and force
globalSigma = true if linkType is not linear.