I would like to rename variables "a_tick6 a_Cf1 a_Cf21 a_Cf2"
into "tick6 Cf1 Cf21 Cf2" (Namely, I would like to remove "a_" from all the variables.)
However, I do not know how to create variable "without a_" by using for each command.
Can somebody help me?
Thank you very much.
Related Posts with generating variables by using foreach command
Merging/Appending excel datasetHi everyone! So I need to import a new variable 'x' from an excel dataset (ED) within a Stata datase…
Simulation generating the exact same data.Dear All, I am running a computationally intensive simulation on Stata-16 MP-32 core on a high-powe…
Use a time-limited outcome variable with xtgls?We have a dataset of heart rate variation over time during a 5-minute session (increments of 30 data…
Frequency table for logistic regressionI'm running a multi-level miseducating effect logistic regression. I know that STATA will remove any…
Fixed effect ordered logitHi Stata users, I have an ordered dependent variable and I am trying to implement fixed effect orde…
Subscribe to:
Post Comments (Atom)
0 Response to generating variables by using foreach command
Post a Comment