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
Manually demeaning of variables of Panel data for all farms and run a linear regression for a particular extreme weather event.I have a panel data of monthly milk yield as a dependent variable and extreme weather ( in terms of …
Determining annual percent change in binary variableHi there, I was working with a large dataset and I am working with trends over time. I was trying t…
Generalized Difference-in-differences with two-way fixed effect modelDear researchers, I have used the following model: Code: xtreg GG i.Event##(c.centered_Age c.cente…
How to compute Wald estimator for IV like thisDear all, I would like to compute Wald estimator to examine the plausibility of instrumental variab…
foreach rename loop keeps stopping after one loop due to variable no longer in varlistI am writing a foreach loop to iterate over each variable, use its label as the new variable name, a…
Subscribe to:
Post Comments (Atom)
0 Response to Generate date variable from string monthly data
Post a Comment