Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: how to search every observation of one variable in another variable


From   ibrahim bostan <ibrahimbstn@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: how to search every observation of one variable in another variable
Date   Wed, 12 Jun 2013 19:07:24 -0400

 I have a dataset which have id number of patents applied by a firm and
 the id number of patents cited by this patent. I am trying to have an
 indicator, as below shown, which will equal one if patent applied by
 the firm is citing a patent which is applied by the same firm.



 cited pt_no   citing_pt_no      patent owner            indicator
 10              20                      a                       0
 11              21                      a                       0
 21              22                      a                       1
 20              23                      a                       1
 20              24                      b                       0
 24              25                      b                       1
 25              26                      b                       1
 1               27                      c                       0
 3               28                      c                       0
 5               29                      c                       0

thanks
 ibrahim
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index