Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: How to record the first occurrence of the event? |
Date | Sun, 21 Oct 2012 11:04:52 +0100 |
Please show us some of your data, so that we do not have to imagine what they look like. Also, please see http://www.stata.com/support/faqs/resources/statalist-faq/#spell Nick On Sun, Oct 21, 2012 at 10:58 AM, Roxannie Wankel <roxanniew@gmail.com> wrote: > how to record the first occurrence of the event? > > A list of firms established one or several joint ventures in the > period of 1990-2009. I need to record the first joint venture that a > firm established witin three years. > > For example, > Company A established a joint venture with Company B on Jan 5, 1991; > (joint venture 1) > Company A established another joint venture with Company C on Feb 9, > 1993. (joint venture 2) > Company A established the third joint venture with COmpany D on Dec 5, > 1994. (joint venture 3) > Company A establisehd the fourth joint venture with Company E on Dec > 6, 2005 (joint venture 4) > > Then I have to record the first and the fourth joint venture. > I should not record the second and the third one because the second > one is within 3 years of the first one; and the third one is within 3 > years of the second one. > > How can I use the STATA command to record these two joint ventures? * * 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/