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?
mean through several variables Hello, I have 4 different variables, each with the expression 1-5. the variables include mental he…
Generate new variable by command "if"Hi I want to create a new variable (var3) using an existing variable (var2). Like the attached photo…
Margins after -gsem-Dear all, I am having some trouble with my margins command after -gsem-. Here below my data looks l…
Probit model constant termHey I have a sample with different start ups, the funding amount, and three different investor type…
Advice on which model to use with binary dependent variable and endogenous ordinal independent variableHello, I have come to a roadblock in my research. I am trying to figure out what type of model to us…
Subscribe to:
Post Comments (Atom)
0 Response to Rename help: can I reapply existing variable names with a suffix?
Post a Comment