I would like to understand what the cluster option in Stata is doing, preferably directly from official Stata documentation.
For example:
reg outcome predictor, cluster(clustvar)
The documentation I am finding uses the notation reg outcome predictor, vce(cluster clustvar), and I'm unsure if these are synonymous. https://www.stata.com/manuals13/xtvce_options.pdf
I also don't have access to Stata software, so I cannot try the models myself.
I have tried to look up cluster() on Google and Bing, but I am not finding a clear documentation of cluster().
This is
notdocumented explicitly in the changeloghelp whatsnew9to10(as referenced by @NickCox in the comments), quoting from the document:So running
reg y x, cluster(z)is equivalent to runningreg y x, vce(cluster z).One disadvantage of
cluster(z)notation is that it permits only one-way clustering (one variable), while the other notation allows multi-way clustering, e.g.vce(cluster z1 z2 ...).