Statalist The Stata Listserver


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

Re: st: state the same for multiple observations?


From   David Kantor <kantor.d@att.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: state the same for multiple observations?
Date   Tue, 14 Nov 2006 12:23:28 -0500

I should add that if it turns out that state IS functionally dependent on us_id, then you can "factor out" that dependency with collapseunique:

collapseunique state, by(us_id)

This will yield a reduced dataset containing just the correspondence between us_id and state.

HTH
--David

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index