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
Help needed Pearsons R table for Categorical Independent variablesHi All, I am trying to create a Pearson's correlation table in Stata. The experiment looks at Indep…
Line graph (mean) with panel dataHey Stata community, I tried to plot something using a panel data set and the "line" command (sales…
How to create a variable from values of other members of a group?Dear all, I am analysing an unbalanced panel dataset that is similar to the following example: Co…
Non-parametric correlation test between dichotomous variable and continuous oneDear Statalist. I have a small sample of countries. I have two variables, X which is a continuous v…
predicted probability meaningHi All, I appologies for asking this very basic question. Part of my PhD research, I have calculate…
Subscribe to:
Post Comments (Atom)
0 Response to Extracting year from Date variable
Post a Comment