Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, is already up and running.

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

Re: st: Recoding with values of the next spell

From   Nick Cox <>
To   "" <>
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


On 29 May 2013 21:31, Richard Goldstein <> 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:

© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index