Suppose we have k independent estimators of p-dimensional vectors theta_1, ..., theta_k. Under the null hypothesis H0 that the theta_i are all the same, the Cochran Q-statistic is the precision-weighted sum-of-squares of the estimators. In the asymptotic limit that each estimator is normally distributed, Cochran's Q-statistic under H0 follows a chi-square distribution with p*(k-1) degrees of freedom.
cochran_mq(est, ve)A list with elements:
QThe value of the test statistic.
dfThe degrees of freedom of the test.
pvalThe p-value of the test.
coefThe combined estimate of the parameter under H0.
vcovThe variance estimate of the combined estimator.