Statalist


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

st: calculating previous transactions for the same issuer


From   "Gao Liu" <gao.liu@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: calculating previous transactions for the same issuer
Date   Tue, 9 Oct 2007 14:40:03 -0400

Dear Statalists:

I have a question that may be simple for many people here, but I just
don't know how to code it. I'll really appreciate if anybody can help
me out.

I have a dataset that contains three variables: transaction_ID,
bond_issuer_name and sale_date. Each issuer may have multiple
transactions in the dataset. I want to creat a new variable indicating
that for each transaction, how many previous transactions the same
bond issuer have in the past two years (two years before the sale day
of the transaction).

Thank you. Any input would be appreciated.

Best


Gao
*
*   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