| |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: generate 3.000 dummies
At 10:08 PM 10/24/2006, Cristian Mackenna wrote:
If I have a database like this:
id_place id_person
1 1
1 2
1 3
2 4
2 5
2 6
3 7
3 8
3 9
� �
3000 200000
Is there any fast way to generate a dummy for every of the 3.000 id_place
I am not sure I understand the question, but perhaps you want something like
tab id_place, gen(idpl)
See help tabulate oneway
If that isn't what you want, maybe you could give
examples of when cases should be coded 1 as opposed to 0.
-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
*
* 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/