Statalist The Stata Listserver


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

Re: st: Another Simple Stata Data Question


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

For some reason, my initial sentence of the request was deleted. I went:

"I have downloaded data from" etc.

On 4/24/07, Alex Koltai5 <[email protected]> wrote:
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/

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