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 "."
Adding fixed effects in esttab using estaddHi all, I've run a few regressions and am trying to add rows indicating the presence of fixed effec…
How to replace any variable's value if meeting certain conditionDear Stata users, In the following data, I want to replace variables d2a1 d2a2 d2a3 to missing 'cau…
Why robust command in panel regression?!!Dear I want to know when and why I can use robust command in Stata for panel regression model?! …
How to re-arrange my data?Dear Statalists, I'd like to rearrange my data in order to analyze it. Part of my dataset is: Co…
Using substring functions in Stata 16.1Dear Statalist, I have a string variable "comment" stored as "strL" that contains a mix of numbers…
Subscribe to:
Post Comments (Atom)
0 Response to Problem Renaming Variables That Contain "."
Post a Comment