Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Dividing a variable


From   "Hoetker, Glenn" <ghoetker@uiuc.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Dividing a variable
Date   Wed, 23 Oct 2002 13:58:58 -0500

Hoping someone can help me with a problem involving dividing up a
variable. My data consists of patent numbers and inventors and looks
like this:

nmi
wku
Schmitt, Ty; Gandre, Jerry
5586003
Sato, N. Albert; Baker, David C.; Waldron, Christie J.	5586324
Swamy, N. Deepak
5587885

I would like it to look like this:

nmi
wku 
Schmitt, Ty
5586003
Gandre, Jerry
5586003
Sato, N. Albert
5586324
Baker, David C.
5586324
Waldron, Christie J.
5586324
Swamy, N. Deepak
5587885

That is, I want to create a record containing each inventor and his or
her associated patent number.  If Ty Schmitt had five patents, he should
show up in five records.  The number of inventors per patent varies from
one to many.

I've looked for egen functions (and their extensions) and done some
experimenting, but am floundering.  Any help would be very appreciated!

Glenn H.








Glenn Hoetker
Assistant Professor of Strategy
Department of Business Administration
University of Michigan at Urbana-Champaign
217-355-4891
ghoetker@uiuc.edu

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index