Statalist The Stata Listserver


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

st: RE: Another Simple Stata Data Question


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: Another Simple Stata Data Question
Date   Tue, 24 Apr 2007 14:25:16 +0200

-findit todate-
hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Alex Koltai5
Sent: dinsdag 24 april 2007 14:21
To: [email protected]
Subject: st: Another Simple Stata Data Question

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