Statalist


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

RE: st: Regarding date format and Repeated count


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
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) 

etc. 

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

Nick 
n.j.cox@durham.ac.uk 


Mr. Arup Kumar Das wrote:

> 2. Repeated count: If the clients visits the center for same services
more
> 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:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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