Hello,
I am looking for a way equivalent to SPSS (AGGREGATE with PIN) syntax
I have data
id zipcode race
1 11364 white
2 11364 black
3 98006 white
4 98006 asian
Then, I want to have
zipcode count asian black white
11364 2 0% 50% 50%
98006 2 50% 0% 50%
Can anyone please have an idea how to get this?
Thank you,
Related Posts with Aggregating and percentage distribution simultaneously
Help ppml Stata 15Hi, I am trying to run this command on Stata 15: ppml trade EXPORTER_TIME_FE* IMPORTER_TIME_FE* ln…
How to find value for upper adjacent value in boxplot?I would like to know the value of the upper adjacent value in a boxplot I have, so that I can exclud…
How to calculate the monthly average from daily data?I have daily data from 03-01-1994 to 29-12-1995. The first column is date and the second column is m…
Collapse using both string and alphanumericI am trying to collapse three (ultimately more) variables on zip codes, state names, and Congression…
graph bar with several categorical variableshi stata users i would like to do this graph in stata; it's about different services and with a lik…
Subscribe to:
Post Comments (Atom)
0 Response to Aggregating and percentage distribution simultaneously
Post a Comment