Array
But When I codebook this variable, it has numeric values associated with each date, as follows:
Array
I googled and found it is the Stata formate for date. But I am not sure how to deal with this vairbale. For example, I would like to create a categorical variable based on this variable: people who complete their degree before a certain date.
I was wondering if anyone could help with this question.
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input int date
22671
22085
21903
21686
22264
.
.
21663
21451
.
21626
21686
22095
.
21762
22095
22280
21959
.
21314
.
.
.
22505
22234
.
22125
21805
.
22159
.
.
22049
21704
22188
21672
21501
20975
21901
21889
21609
21693
22431
22056
21906
21489
21532
21508
.
22224
21686
.
22592
22342
22096
21684
20951
22624
21726
21675
.
22415
.
.
22599
22026
.
21898
21745
21897
22043
21312
22144
22300
.
.
21677
21792
20963
21715
.
21647
.
.
22234
.
22090
21390
22123
.
.
22481
21924
.
.
22050
22097
22415
21684
21898
end
format %tdnn/dd/CCYY date
0 Response to Dealing with Date variables in Stata
Post a Comment