Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
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/