Dear all,
I am very new to Stata.
I want to convert the numeric date variable "cdint" (type: long, format: %tdD_m_Y) to a string variable.
It currently looks like that: cdint
25 Jan 07
29 Jan 07
13 Jan 07
29 Jan 07
04 Feb 07
24 Jan 07
01 Feb 07
13 Jan 07
26 Jan 07
21 Jan 07
25 Jan 07
13 Jan 07
15 Jan 07
14 Jan 07
12 Jan 07
23 Jan 07
05 Feb 07
27 Jan 07
27 Jan 07
13 Jan 07
12 Jan 07
I tried to destring it and use the date command but Stata always generates missing values.
destring cdint, replace
gen date = date(cdint, "DMY")
(3,176 missing values generated)
Related Posts with Converting numeric date variable to string variable
dynamic panel estimation using OLS - what am I missing?I am writing up research using the excellent xtabond2 to estimate correlates of economic growth usin…
converting nominal stock returns into real stock returnsHi This is a basic question but thought someone in macroeconomics or finance (or any related discip…
exporting multiple tables to 1 table in excelhello All, I ve been trying to figure this one out for a while now. I have a data file with 25 indi…
Interpreting Coefficients Using Dummy InteractionI'm confused about what the overall effect of my independent variable, voteshare, on my dependent va…
Fisher LSD test following MANOVA?Hey everyone, I'm wondering if there is any way to use Fisher's post hoc LSD test after a MANOVA in…
Subscribe to:
Post Comments (Atom)
0 Response to Converting numeric date variable to string variable
Post a Comment