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
Bootstrapping in dominance analysisDear Stata experts. using Code: webuse auto // Binary outcome dominance analysis with factor var…
Problem with a parametic survival analysisHi! Sorry, this will probably end long, but I really need som help. I am doing a reliability analy…
Writing results to file when model fails to convergeHello list users. I am hoping someone has tired to do something all the lines of the following. I am…
Data panelHello Mr. what is the function, characteristics,its importance, its Benefits of the vce(custer citie…
Omitted variable due to CollinearityHi guys, I am trying to find which coefficient beta 1 or 2 has a greater effect on child mortality.…
Subscribe to:
Post Comments (Atom)
0 Response to Converting regular date to a monthly date
Post a Comment