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
Error-correction model with GMM first differenceDear Statalist users Could you please help with advice on how to construct an Error correction mode…
Test for two mean and standard deviation with unknown sample size.Hi, I have lung function data (mean and SD) for two time point, say, admission and discharge for 20 …
auto-filter variable name in dialog boxHi, I'm relatively new to Stata and am wondering if I'm missing something simple when it comes to se…
Network Analysis-nwcommandsHi, I am using the nwcommands package to run some social network analysis. I am facing two issues-…
HC2 HC3 standard errors with clustersDear all I have one question regarding robust standard errors with the command regress. Does it make…
Subscribe to:
Post Comments (Atom)
0 Response to generating variables by using foreach command
Post a Comment