在处理面板数据的时候因为不太清楚那个gls weights选项的具体含义,所以查找了一下users guide, 在截面异方差一栏中有一段说明是:
GLS for this specification is straightforward. First, we perform preliminary estimation to obtain cross-section specific residual vectors, then we use these residuals to form estimates of the cross-specific variances. The estimates of the variances are then used in a weighted least squares procedure to form the feasible GLS estimates.
因为之前看的计量书籍是中文的,我看了以上的文字还是不太清楚究竟是怎样的一个过程。
特别是gls的权数在这里是怎么设置的呢,似乎也没有写清楚啊。
不知好心人能否帮我再解释说明一下,非常感谢!