I've been given some wide panel data where the names of the first 28 variables were simply repeated over and over in sequence without any suffix. Stata wouldn't allow this during the import, so all subsequent variables after the first 28 simply have the column letters from excel. Is there a way I can tell Stata to reuse the initial set of variable names across the next 28 variables (or ideally, all 3 sets of 28) while applying a suffix to make them unique?
Thanks,
Joe
Related Posts with Rename help: can I reapply existing variable names with a suffix?
modelling stated preferences for discrete choices with case sensitive variablesHi, I'm trying to model a discrete choice (4 options available to each respondent in each scenario …
Identify string as part of another stringDear statalist users, I have the following (stylized) data: Code: * Example generated by -dataex…
Calculating the Alpha for bonds panel data setHi, I am trying to calculate Jensen's alpha for a panel data set of 122 bonds with each daily obser…
Lagging a variable 2 years from data on daily stock pricesHello I am trying to make an empirical study on the effect of dividend changes on future firm perfo…
How to create a loop for doing regression with multiple variables and storing each estimate with a sequential labelHi I'm new to Stata and have a question about using foreach for regression. I have A as a dependent…
Subscribe to:
Post Comments (Atom)
0 Response to Rename help: can I reapply existing variable names with a suffix?
Post a Comment