Dr. Attaullah Shah
Post count: 106

Welcome to the Forum Selini

Yes you create summary statistics using a grouping variable. See the following example. I use industry as a grouping variable and find descriptive statistics for the variable wage.

sysuse nlsw88, clear
bys industry : asdocx sum wage, replace

Summary statistics by grouping variable asdocx

I think you should post the second question as a new topic so that it is answered there.