Bookmark and Share

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

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

Re: st: count instances across a group of variables

From   Nick Cox <>
To   "" <>
Subject   Re: st: count instances across a group of variables
Date   Fri, 27 Jul 2012 14:03:24 +0100

Use -tabm- from -tab_chi- (SSC) to get a table.

Look at -egen-'s -anycount()- function to calculate the count variables.


On 27 Jul 2012, at 13:29, "Fitzmaurice, A.E." < > wrote:


I have three variables coded 1 to 15, where the meaning of each of the codes is consistent across the three variables, what I would like to do is to produce output which uses information across all of the variables and gives me the number of time value 1, value 2 etc occurs across the three variables

If possible I would also like to generate a variable (possibly in a new dataset) which contains this info

*   For searches and help try:

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