Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: tabulate or other command?


From   [email protected]
To   [email protected]
Subject   Re: st: tabulate or other command?
Date   Sat, 17 Nov 2007 22:27:23 +0100

Thanks Brian, but I think that I have expressed my question wrong.

The idea is to calculate the total person for each code.
For ex
id postcode region
1 1 2
1 1 2
1 2 2
1 3 2
2 1 4
3 1 5


So I have 3 people in postcode1 1 in postcode 3 and 1 in postcode2.
if use tab the result is 4 obs with post code 1, but I have only 3 people, so because id
is not unique.
Thanks a lot.








Quoting [email protected]:


Dear Stalist I have this a dataset:
id postalcode region state
1  01         2       2
1   01        2       2
1   02        2       2
2      05     8      9
2      05      8    9

My id are people that I have , if make the tab by postalcode I have 3
postalcode
with 2 id with a total of obs = 5
If I want know how many person are by postal code, How can I do this?
Thanks a lot in advance for your comments.



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


Catia Nicodemo



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index