Han and Lee (2022, Economics Letters 220: art. 110882) propose a least-squares approach to correct for selectivity bias in the within-group estimator of linear panel-data models with fixed effects and sample selection. In this article, we review that estimator and introduce a command that provides a numerically stable implementation.