Dear Statalist Users

I am using an endogenous switching regression (ESR) model to conduct my research work. I have successfully estimated the model in Stata using movestay command. However, I do not have an idea on how to estimate the treatment effects (Average treatment effect on the treated (ATT) and Average treatment effect on the untreated (ATU)) in Stata. Kindly if you know how to do it help me. Thanking you.