Dear all,
I have my date variable in the following string format 201501, 201502, 201503, etc..
I would like to generate a date variable. I have been using the following command gen month=monthly(date,"YM"). However, I am just getting a sequence of missing values.
Do you know where the problem lies?
Many thanks in advance!
Francisco
Related Posts with Generate date variable from string monthly data
Propensity Score MatchingHi All I have two sets of data with values 0 and 1. The number of observations for dataset of value…
Mediation Analysis with multiple control variables and bootstrap CIsDear Statalist, after intensive studying of the available resources online, I am still left with so…
Python in StataDear all, I have a question about Python and Stata in version 16. I checked the documentation and ma…
Using loops and assigning particular rules to eachDear Stata list, I am agonising over a problem and would very much appreciate your support. I have …
Convert Integer Date to Date FormatHi all, I have a problem with converting an integer-type date (format %d) to long-type date (%10.0g)…
Subscribe to:
Post Comments (Atom)
0 Response to Generate date variable from string monthly data
Post a Comment