Reply To: asdoc: using two variables with bysort for summary statistics 4 years ago Dear Dr Attaullah Thank you so much, I just checked again and the error was resolved once I restarted Stata. Best Regards, Aamina