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/