Hi
I am trying to change the variable "doa" to numeric which is understandle to Sata, the below command did not work. Please advice.
gen edate = date(doa, "md20y")
type mismatch
input int doa
.
.
20970
.
.
.
20610
.
.
.
.
.
21174
.
.
21165
18860
.
.
.
.
.
.
17195
.
.
.
.
.
.
17552
.
.
.
.
.
.
.
20810
.
.
.
.
.
.
.
.
.
.
.
20450
.
.
.
.
20218
.
.
.
.
.
.
.
.
.
17585
20426
.
.
.
.
.
.
.
.
.
.
20531
.
.
.
.
.
20598
.
.
.
.
.
.
.
.
.
21182
21209
.
.
.
19979
.
end
format %dM_d,_CY doa
[/CODE]
Related Posts with date
Problem with reshape wide to longHi everyone, I have a dataset with 219 variables which I would like to reshape from wide to long. 9…
Selecting dates within groups based on specific criteria in order to create a more unique idHello all, I'm a new Stata user and new to Statalist; I'm currently using StataMP 14. I'm doing so…
Create new variable of survey dataHello. I'm working with survey data from the Eurobarometer survey. I want to create a new variable, …
Load themes for the text editor instead of using the menuHi all, I was just wondering. Is there a way to load theme packages directly to Stata instead of fi…
Selecting all dates within groups that are within one week of each other and creating a sub-group idHello all, I'm a new Stata user and new to Statalist; I'm currently using StataMP 14. Purpose: I'm…
Subscribe to:
Post Comments (Atom)
0 Response to date
Post a Comment