I am working on a project that involves re-randomizing our sample every month. As could be expected, I want to include the name of the month in many of the variable names (e.g., treatment_Mar, treatment_Apr, etc.). However, I will be running the do-file for month M in the preceding month, M-1. Is there a way to create a local of next month's name? Because c(current_date) is a string, I'm stumped as to how I can add to/subtract from it.
Related Posts with Create local including next month's name
Is forvalues inconsistently inclusive?Is this behavior inconsistent or am I missing something? Code: . forv x = 0(0.05)1{ 2. d…
How to match questionnaire updates with the shortest interval to a fixed date.Dear Statalist, I just want to check if this is ok or if there is a more elegant way to tidy up a m…
Time Trend in PM2.5 and How to Deal with It in Cox Regression?Hi All. I am currently study the association between PM 2.5 and adult ANCA asthma ( a disease). Hig…
How to draw a vertical graph with a list of coefficients and confident intervalToday I found a very nice way to present our result by using the vertical line with the coefficients…
How to overlay distribution of participants responses for a certain survey question?Dear Statalist, I hope you are well. I got this comment (Distribution of ‘i’ more extreme for micr…
Subscribe to:
Post Comments (Atom)
0 Response to Create local including next month's name
Post a Comment