Statalist The Stata Listserver


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

st: calculating return of stocks - problem with weekends


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: calculating return of stocks - problem with weekends
Date   Mon, 30 Apr 2007 07:46:58 -0400

sacrificial lamb

Correction to my earlier posting:

That should create a sequential day variable for only market days
that counts the market days.

tsset nummer tradingday  <====
g return = log(f/L.f)

That should work on the market days available for each firm.



Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index