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
Is it valid to apply fixed effects or GMM method to this model?The model is attached. This model is special as it includes macro environment variables (FB and X) w…
Endogenous Treatment Effects PostestimationHello all, Is there any reason, technical or otherwise, that there is no test of overlap or balance…
Issue in estimating non-linear seamingly unrealated regressionHi, I am working on a research project in finding market power of the rice milling industry in Sri L…
Graphing two categorical variablesHello everyone, I'm new to the Forum and relatively beginner at Stata, so sorry if the answer for w…
ivreg2 and Partialling-out exogenous regressorsDear STATA Community, i am estimating following model using panel data with dummy control variables …
Subscribe to:
Post Comments (Atom)
0 Response to generating variables by using foreach command
Post a Comment