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
hbar and detection limitsHi all, Can someone assist with plotting an hbar for detection limits of different concentrations (…
summarize a variable in panel dataHello, I want to make a descriptive analysis on variables of my panel data. I have attached the dat…
xi: xtivreg . Too many dummiesI am doing some work and have the following command for an instrumental varial regression with panel…
Storing regression outputs / panel data / issue with system limits / percentage of positive constantsDear Stata users, I am working with panel data. I am running regressions for each id with: bysort …
Help with xtdcce2 - unit specific error correction termsHello all, I have recently come across to xtdcce2 and would like to ask some questions. - If I use…
Subscribe to:
Post Comments (Atom)
0 Response to Converting numeric date variable to string variable
Post a Comment