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?
Compare two xtnbreg models in panel dataHi Everyone, I am new in this forum and I have quick question, I appreciate any comment in advanced.…
Forvalues loop using if and preserve / restore, but cannot save filesDear all, First of all, happy new year! I am writing to ask a question about using a loop with `if…
Why do estimation commands sometimes omit variables?Hi guys I am stucked: STATA omitted my variable due to collinearity, but I have no idea why. I ran a…
How to execute the "multicat" command?Just learned about the Code: multicat function in the book by Lawrence C. Hamilton which looks ve…
Estimation of Production function using PRODESTArray Array Array I have estimated my production function using Levinsohn-Petrin and I get insigni…
Subscribe to:
Post Comments (Atom)
0 Response to Rename help: can I reapply existing variable names with a suffix?
Post a Comment