Is it possible to rename a variable using regex?
Let's say I have a variable:
g wth_t1_xxx = .
Is it possible to rename this variable using a regular expression so that it would be wth_xxx_t1? I'm looking for a pattern to capture the content between the underscores and move to the end, while taking the content at the end and move it to the middle.
Related Posts with Rename using regex?
how to interpret gsem coefficientsHi all, I am working with gsem - Bernoulli logit distribution, and I was wondering if someone has an…
How to obtain confidence interval & p-value from stmh command result tableGood Morning, I am a relatively new STATA15 user. I need some help obtaining the confidence interva…
Post estimation command for predicted count probabilities of count models (NB)After estimating a Negative Binomial model, I need to obtain predicted count probabilities of specif…
Computations within groupHello friends, I have a data like the following: Year Firm Gender 2009 A M 2009 A M 2009 A …
Dealing with missing valuesHi, I am using an individual survey and I am examining the impact of international remittances on ch…
Subscribe to:
Post Comments (Atom)
0 Response to Rename using regex?
Post a Comment