Stata: Summary stats with table. Order by N
问题 How can I order the following table in descending order of frequency? sysuse auto.dta, clear replace make = substr(make,1, strpos(make," ")-2) table make, c(N price mean price median price sd price min price max price) format(%9.2f) center The first observation should be buic or old with N=7. Is there a way to order by frequency? The code above also gives the error that there's too many stats() . Is there an alternative procedure that allows more columns? 回答1: (In what follows, I followed