Statalist The Stata Listserver


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

st: Another Simple Stata Data Question


From   "Alex Koltai5" <[email protected]>
To   [email protected]
Subject   st: Another Simple Stata Data Question
Date   Tue, 24 Apr 2007 08:20:49 -0400

http://wrds.wharton.upenn.edu/ds/cboe/cboe.shtml

in Stata format. The problem is that I don't know how to create an
index for the data. I have a variable "caldt" (calendar date) which is
a string in format "mmddyyyy" where the letters m,d,y stand for
numbers.

 I would like to either transform this data into %d numerical data
format and use that as an index or create an index in another way. (I
will later use that index to merge this dataset with other data sets
with a similar format).
  But I can't manage to do it. Stata's data transformation functions
don't seem to work on this format, and I'm not sure how to use Stata's
string functions to extract the month, date and year from that format
-- although I'm sure there must be a simple way of doing it.

Thank you in advance for any help for this rookie.

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