Dear Stata community,
I have a variable stored as dates in the Stata format i.e 01jul1993 (I converted them from string into the correct format). However
I know want to create a new variable which organises the observations according to whether the date was pre or post 31dec1996. what would be the best command to use please? I have tried reading the manual in reference to dates/ times but I could find anything that helps with generating new variable according to the date.
Many thanks for your help,
Roshani
Related Posts with generating new variable based on date variable
Multiple fixed effects using aregDear all, I am studying the determinants of peer group composition and use panel data with a sample…
Fama and French industry classificationsDear Stata users, I have been struggling to convert my sic code into the 12 industries classified b…
fixed effect panel regression with multiple time seriesDear stata community I have to do a fixed effect panel regression with the difference in ask yield …
Collapsing with class numerosity as weightDear Statalist, I am working with a large dataset (30 mln obs, 1979-2018) and would like to collaps…
export summary statistics saved as variables to latexI have manipulated my data set such that it contains only a number of summary statistics that I want…
Subscribe to:
Post Comments (Atom)
0 Response to generating new variable based on date variable
Post a Comment