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 "."
How to find nonnumeric characters within a string variable and lists the observations that have this issueI want to identify which observations in my variable has non-numeric characteristics and what is the…
Recovering p-values from multiple bootstrapped iterations of a logit or glm regressionThe CMS models for choosing comorbidities to include in a risk adjustment model for a quality measur…
Calculating dummies based on other variablesDear specialists, I have a panel data, it includes Stock ID (Stkcd), fiscal year (Year), Background…
An indicator variableHi everyone, I have a dataset including over 500 firms that have CEO changes based on CEO_ID and la…
Crosstabs automationI am in the process of fully automating a code process. i have 10 different variables and first i ha…
Subscribe to:
Post Comments (Atom)
0 Response to Problem Renaming Variables That Contain "."
Post a Comment