The between-groups estimator is the regression of the cross section means of on the cross section means of . In other words, you fit the following regression:
The between-time-periods estimator is the regression of the time means of on the time means of . In other words, you fit the following regression:
In both cases, the error is assumed to be normally distributed with mean zero and a constant variance.