The xtreg manual says on p.7 for FE model (https://www.stata.com/manuals/xtxtreg.pdf)
vce(cluster clustvarlist) specifies that standard errors allow for intragroup correlation within groups defined by one or more variables in clustvarlist, relaxing the usual requirement that the observations be independent. For example, vce(cluster clustvar1) produces cluster– robust standard errors that allow for observations that are independent across groups defined by clustvar1 but not necessarily independent within groups. You could also type vce(cluster clustvar1 clustvar2 . . . clusterp) to account for correlation within groups formed by p variables (multiway clustering).
Code:
use "http://www.stata-press.com/data/r14/nlswork.dta" xtset idcode year xtreg ln_wage age tenure, fe vce(cluster idcode year)
Code:
option cluster() incorrectly specified: too many variables specified
Comment