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
Interpolation on null values with the most frequent valueHello. In a dataset like this I need to replace the null values of x1 with the most frequent value o…
Detecting careless responses in STATAHello, I wonder if anyone could share any tips or tricks for detecting careless responses (unengag…
Asking for definition of various types of treatment?Borusyak, 2021 has a sentence We further discuss the implications of our results when treatment …
Solution for inlist - expression too longHi Statalisters, I just would like to share a solution for the inlist limit of 10 string arguments,…
Interaction intepretationDear Statalist: I have the following question on how to interpret the results of the ## interaction…
Subscribe to:
Post Comments (Atom)
0 Response to Converting regular date to a monthly date
Post a Comment