Hi everyone, I wanted to convert a regular date to a monthly date. The regular date variable is named after "DATE" in the attachment. I tried the command gen Mdate = mofd( DATE ), it's working good, but is there any way to specify the range in the regular date while converting to monthly date. For example for days after 2018/09/20 i want it to be converted to as 2018m10 (October not September). Thanks in advance. I am new in the forum, so apologies for any inconvenience.
Related Posts with Converting regular date to a monthly date
Constrained Nonlinear RegressionHi all, I am trying to estimate the parameter delta using the nl command in Stata 15.1, as follows:…
Working with large Panels (regressions)Hi, I have a large wide panel dataset: t=804 months. N=45464 individuals. In long form, this equals…
graph stata HR and tertilesArray Good morning, I'm trying to make a graph as follows after a cox model but I have never used st…
why i can't convert from yyyy/mm/dd to timehello i have variable for time like this : Day (variable name) 2011/12/01 2011/12/02 2011/12/03 . .…
Histogram with log scale both below and above 0Dear Statalisters. I have been puzzling over what I would have thought would be a simple challenge.…
Subscribe to:
Post Comments (Atom)
0 Response to Converting regular date to a monthly date
Post a Comment