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
Interaction terms in Probit RegressionDear Stata Expert, I have a question related to interpretation of interaction terms in a Probit mod…
See change in composition of traded goods according to Product Complexity IndexDear Statalisters, I want to measure the influence of trade agreements on the composition of the tr…
Merging datasetsHi stata experts, I am trying to merge two datasets. The first dataset (A) has 39,082 observations …
I would like to add up value label 2+3 4+5 and 6+7 to have 1,2,3,4 in the endAs u can see in the photo, I have 7 value labels. I would like to add up value label 2+3 4+5 and 6+7…
Fam MacBeth two stage regression Dear sir, following is the command for Fam MacBeth two stage regression with Newey-West standard er…
Subscribe to:
Post Comments (Atom)
0 Response to generating variables by using foreach command
Post a Comment