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 "."
Calculating timeframes between variables in long formatDear Forum-Users, I have a data set in long format – combining prescription data and dates of doc vi…
Keeping a variable value over years that was only answered onceHi there, I'm investing the role of house prices on happiness and am using a FE model. The data has…
Comparing interaction effects using "nlcom"Dear Statalisters, In my model, I have two moderation effects which I would like to compare using t…
Calculating timeframes between variables in long formatDear Forum-Users, I have a data set in long format – combining prescription data and dates of visits…
Creating bilateral indicators for a pair of countries in a Panel dataHi all, I am looking to create the following ratio t_ij= Xii*Xjj / Xij*Xji in STATA, where Xij is t…
Subscribe to:
Post Comments (Atom)
0 Response to Problem Renaming Variables That Contain "."
Post a Comment