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
Interpretation of logit coefficients and rescaling of variablesDear all, I am trying interpret the coefficient of logistic regression results and would very much …
Fixed-effect vs. random-effect meta-analysisHello, I wonder to know what meta-analysis model must be used to compute a combined effect across su…
System GMM with a set of endogenous dummy variables and their coefficientsHi all: I am using xtabond2 to estimate system GMM. My main interest variable is not lagged depende…
Wolbers's c-statistic after competing risk regressionHello Is it possible to calculate the Wolbers's c-statistic in Stata ? Thanks …
intercept reportHello I wonder if its required to report the intercept for a survival model based on competing risk…
Subscribe to:
Post Comments (Atom)
0 Response to Extracting year from Date variable
Post a Comment