Hi, I want to summarize age, education, family_size and voters (average and standard deviation) by cluster (columns should have ETR, MTR, WTR and Total), into a single table. How?
The data is as following
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input long cluster float(age education family_size voters)
1 25  5 5 52
2 30  7 7 12
1 21  8 9 15
2 22  9 4 48
3 23 10 3 49
3 25 13 5 23
2 24 15 6 56
end
label values cluster cluster2
label def cluster2 1 "ETR", modify
label def cluster2 2 "MTR", modify
label def cluster2 3 "WTR", modify