I am performing a generalized least squares regression based on a design matrix $X$, a response vector $Y$ and a (non-diagonal) covariance matrix $C$, assuming Gaussian errors. I'm not sure what goodness-of-fit tests are applicable. As a first step I could go for a simple chi-squared approach, using the usual formula $\chi^2 = r^T C^{-1} r$, where $r$ is the vector of residuals, but:
- Is this formula applicable to the case of a non-diagonal matrix $C$?
- Can the generated $\chi^2$ statistic be used in the same way as if $C$ were diagonal (e.g., the weighted least squares case)
- Are there better goodness-of-fit statistics that are more frequently used for a problem like this one?