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
Changing font and window preferences without multiple clicksDear all, I am working with the same laptop in two locations with two different sets of monitors - …
Summary statistics for quintilesHi, I would like to create a table in stata, which describes summary statistics for quintiles of a …
Replacing dummy variables = 1 when a firm's activity is classified within a certain SIC codeHi everyone, I am asking some help for the construction of a formula that maybe has some errors. I g…
Year dummies in first differences?How?Dear I am new in STATA and I hope I can gain from the experts experience in STATA My question is I w…
Spearman rank correlation matrix output in wordI need spearman correlation matrix output in word. Actually, I get this table in word through “asdoc…
Subscribe to:
Post Comments (Atom)
0 Response to Converting regular date to a monthly date
Post a Comment