Hey all!
I have a problem in db management. In particular, my variable "date" has format %9s and type str8 and I want to create a variable in format %tm.
I tried to use "gen dates = monthly(date,"DMY") " - and "gen dates = date(date,"DMY")" - to create a new variable from the first one but Stata has created all missing values
(screenshot in attachments)
The final target is to create a time series of dates. This would allow me to merge different datasets (monthly and quarterly) by connecting dates' values.
ty
Michele
I have a problem in db management. In particular, my variable "date" has format %9s and type str8 and I want to create a variable in format %tm.
I tried to use "gen dates = monthly(date,"DMY") " - and "gen dates = date(date,"DMY")" - to create a new variable from the first one but Stata has created all missing values
(screenshot in attachments)
The final target is to create a time series of dates. This would allow me to merge different datasets (monthly and quarterly) by connecting dates' values.
ty
Michele
Comment