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
order variables using foreachDear all, I have around 1600 variables with suffixes coming from the variable id. I was wondering w…
WinsorizationI have financial data (a dependent variable) that is heavily skewed with a long tail. Is it acceptab…
Cross sectional regression by year and sized-based peer groupsFirstly, Happy Holidays to everyone Now my problem. I need to run a cross-sectional regression by …
Loops I have two questions regarding two problems that I have been facing so far. First after runni…
Convert column into rowHi , I want to transport the follwoing data sample ( column into row ) ----------------------- copy…
Subscribe to:
Post Comments (Atom)
0 Response to generating new variable based on date variable
Post a Comment