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]

Re: st: Recoding with values of the next spell


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Recoding with values of the next spell
Date   Wed, 29 May 2013 22:25:08 +0100

Rich is correct. For a review see

SJ-8-4  dm0042  . . . . . . . . . . . .  Speaking Stata: Distinct observations
        (help distinct if installed)  . . . . . .  N. J. Cox and G. M. Longton
        Q4/08   SJ 8(4):557--568
        shows how to answer questions about distinct observations
        from first principles; provides a convenience command

.pdf freely available at
http://www.stata-journal.com/sjpdf.html?articlenum=dm0042

Nick
[email protected]

On 29 May 2013 21:31, Richard Goldstein <[email protected]> wrote:

> there are built-in commands that will give you this (e.g., -codebook-)
> and there are user-written commands also; use -findit- to find either or
> both of -unique-, -distinct-

On 5/29/13 4:18 PM, Kai Huang wrote:

>> Many thanks. How about if I want to count the total number of persons instead of spells? In this case, the total number of persons is 3 as deduced from the id.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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