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
Principle Component Analysis: using weights and comparison of PCA between countriesHello Statalist Forum Users, We wish to summarize several dichotomous variables of individual level…
chi2 test with probability weightsDears I would lke to run a chi2 test but using pw rather than fw. If i use fw stata of course will …
similar observations within one variableHi, I would like to spot the observations that are very much alike within one string variable. Let…
Panel data formatHi I would like to transform my panel data so that the years are grouped from 1989 to 2016, consecut…
If statement within foreachHey! So I would like to run a regression if income is within the range of (0-10727.88). Code: l…
Subscribe to:
Post Comments (Atom)
0 Response to Converting regular date to a monthly date
Post a Comment