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

RE: st: Regarding date format and Repeated count

From   "Nick Cox" <>
To   <>
Subject   RE: st: Regarding date format and Repeated count
Date   Mon, 10 Dec 2007 14:23:36 -0000

This is a little vague, and I have high probability 
of answering a question different from what you have in mind. 

I infer data like this: 

id      service            date 
==      =======            =====
Arup    data analysis      8 Dec 
Arup    debugging          9 Dec 
Bill    debugging          1 Dec 
Bill    debugging          8 Dec 
Bill    graphics           25 Dec 

How many distinct people wanted each service? 

egen tag = tag(id service) 
egen people = total(tag), by(service) 


There is a paper coming out on counting groups, especially panels, in
Stata Journal 7(4) 2007. 


Mr. Arup Kumar Das wrote:

> 2. Repeated count: If the clients visits the center for same services
> than one times during a reporting period (month, quarter etc). How can
I can
> I calculate
> 	 a. number of individuals visited for same services &
> 	 b. number of visits for the same service.

*   For searches and help try:

© Copyright 1996–2023 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index