Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Collapseing by year


From   Lars Folkestad <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Collapseing by year
Date   Fri, 20 Jan 2012 15:18:58 +0100

Dear List

I have a dataset where i have patient id and birth year.
I would like to have my data set up so that i have

Birth year  number_of_persons_born_this_year


I think i have to use the collapse function, but i cannot figure out how.

Thank you.

lars


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index