Hi all,
I want extract year from a date variable. No sure how to do this. Appreciate your assistance in advance.
Describe date
storage display value
variable name type format label variable label
------------------------------------------------------------------------------
date long %10.0g DATE_Birth
Date in the stata file look like this.
date
26112007
5072007
4032008
7032008
7042008
30012008
25072007
19122007
14092007
10122007
7112007
8112007
20122007
Thanks,
Related Posts with Extracting year from Date variable
Post-test estimations with imputed data using stcrregDear all, I am using Fine & Gray proportional subhazard models to calculate the effect of some …
Multiplying freq by another variable.How many | cars do | you own?|| Freq. Percent Cum. ------------+----------------------------------- …
Local Average Treatment Effect after BiprobitHi all, I would like to know how to compute LATE after a biprobit model with endogenous binary regr…
Clustered standard errors.This is a conceptual question; I'm struggling to decide whether I should cluster my standard errors.…
How to group time datahello I need your help if I want to organize my data and group it by week. for example, I want to ca…
Subscribe to:
Post Comments (Atom)
0 Response to Extracting year from Date variable
Post a Comment