Hello! I'm trying to rename variables from the label, but this label includes dots (".")
Example Label: "aaa.1.bbb.actual_label"
Hence, the following doesn't work:
foreach v of varlist v655 v656 ... v688 v689 {
local x : variable label `v'
rename `v' `x'
}
I've used ways to read from a particular position in a string before but I can't seem to make it work now.
Would be very grateful for help!
Related Posts with Rename from last part of label that includes "."
Generate lagged value for psudo panelHi all, I have a data looks as below: Code: * Example generated by -dataex-. To install: ssc inst…
Using Pweights in Production Function EstimationHi everyone, I am a new user of Stata with limited Stata skills. I am trying to use the -acfest- co…
outreg2 help requestedWhy does one outreg2 command work and the other does not, when they are the same except for one vari…
Dropping observations based on certain criteriaHello all, Here is a snippet of the data I am working with: Code: * Example generated by -dataex-…
Testing for Normality using Jarque-Bera in Panel Data (xtsktest + jb)Dear Stata community, currently, I am trying to decide whether my data is normally distributed or n…
Subscribe to:
Post Comments (Atom)
0 Response to Rename from last part of label that includes "."
Post a Comment