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
Recoding into another variableI am at a loss here and would be grateful for any help: I have a string variable "Other-specify." S…
Post hoc analyses after multi-nominal regressionHello, I have a dataset with a categorical outcome variable (strategy) that includes four groups. I…
fitted lines after qreg?Dear All, Given the following data (taken from https://cran.r-project.org/web/packa...gnettes/rq.pdf…
Inverted u-shaped relation: how to deal with a moderatorHi all, I've found an inverted u-shaped relation between the dependet variable "roa" and the variab…
Help with TVDIFF/ plotting time-varying treatment effects?Hi all, I have a case where the treatment is binary and varies over time. I am trying to use the us…
Subscribe to:
Post Comments (Atom)
0 Response to Create local including next month's name
Post a Comment