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
SEM - insignificant direct path vs. significant indirect pathsDear Forum, I am conducting SEM analysis in Stata and I have specified a well-fitting measurement m…
Two part model with instrumental variableHi: I am using a two part model with a binary dependent variable and a binary endogenous regressor.…
Problems with controls and fixed effects in DIDHi, I'm currently using triple difference to analyse the effect of minimum marriage age legislation…
Stratified Wilcoxon Mann Whitney Generalised Odds Ratios for Repeated Measures DataDear Statalist, Hope you're all well. I have a dataset with repeated measures of the modified Rank…
Panel Data Regression: reg vs xtregHello Everyone, I have a panel data that I am trying to make a regression for and I am confused whi…
Subscribe to:
Post Comments (Atom)
0 Response to Converting regular date to a monthly date
Post a Comment