C:\Program Files\Stata18\ado\plus\x\xtserial.ado *! version 1.1.0 15oct2019 Then test with a built-in dataset:

which xtserial Successful output:

xtserial is preferred for unbalanced panels and when heteroskedasticity is suspected. In a research pipeline, ensure your do-file installs the package automatically: