Statalist The Stata Listserver

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

st: Complicated counting

From   "Moore, Jesse" <>
To   <>
Subject   st: Complicated counting
Date   Mon, 14 May 2007 15:18:34 -0400

This is perhaps a mundane question (compared to some posts), but
important to me nonetheless:
My data looks like this:
ProviderID    Hospital    
A                    1
A                    1
A                    1
A                    1
B                    1
B                    1
B                    2

I would like to create a variable with the number of hospitals that each
provider has worked at.  For provider A it would be 1, for provider B it
would be 2.

Any help would be greatly appreciated.


Jesse Moore, MD
General Surgery Resident
Fletcher Allen Healthcare
University of Vermont

Confidentiality Notice:
This message, and any attachments, may contain information that is confidential, privileged, and/or protected from disclosure under state and federal laws that deal with the privacy and security of medical information. If you received this message in error or through inappropriate means, please reply to this message to notify the Sender that the message was received by you in error, and then permanently delete this message from all storage media, without forwarding or retaining a copy.

*   For searches and help try:

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