Hello,
I am using the 2018 dataset from Latinobarometro. A lot of variables are named something like "P10STC.B". I have been trying to rename them, but keep getting errors.
" not allowed in oldname
Syntax is rename oldname newname
You used . in oldname, not newname. . is used in newname to indicate that the corresponding wildcard in
oldname be skipped. E.g., "rename a*b* a.b*" removes what is between a and b; variable ausbvalue would be
renamed abvalue.
r(198);"
Please let me know how I can rename those variables. I know those are invalid names, and Stata does not recognize them. Thank you for your help.
Related Posts with Problem Renaming Variables That Contain "."
Modifying a dataset to facilitate mergingHello, I am working with NHANES data and have been merging datasets together using a 1:1 merge with…
label value?Dear All, Is there any other way (say, one line command) to obtain `a' as below. Code: * Example ge…
Unbalanced datasetHello Stata users, I started using Stata recently and at the moment I find myself in a dilemma. My d…
Indicator variable based on change in string variableHi, I'm dealing with (unbalanced) panel data. Code: * Example generated by -dataex-. To install: s…
Marginal Effects after GsemHello everyone I am running a multinomial logit model using gsem I tried finding marginal effect of …
Subscribe to:
Post Comments (Atom)
0 Response to Problem Renaming Variables That Contain "."
Post a Comment