打错了
原话是:“You should use xtreg X Y, robust cluster(variable) to account for the heteroskedasticity”
看stata xttest3的文件是“ command “xttest3” which calculates a modified Wald statistic for groupwise heteroskedasticity in the residuals of a fixed-effect regression model. "