Hi,
I am trying to rename every three variable in my dataset such that the first three variable X1 X2 X3 read HH-W-X1 HH-B-X2 HH-H-X3. Also, I would like to rename the three subsequent variable as follows: X4 X5 X6 —> UH-X4 UX-x5 UX-x6. My data includes 42 variables as X1 X2 ... X42 and I would like to loop this over 42 variables. Thanks for your help.
Best,
NM
Related Posts with Renaming every 3 variable
gen with differences between observationsDear all, I have the following dataset. I am trying to create a variable that generates 1 when the …
creating new variables for duplicates observationsHi All, Please I would like to ask you help. I have an unbalanced panel with id, months, years, cour…
Fixed effects vs random effect (NBM) and stata commandI am investigating the effect of Human Development Index (country level Independant variable) on Neg…
Combine multiple variables (categorical and ordinal ones) into one variable (categorical) for regressionHey people, I want to run a regression with Stata and must change a few variables. There are three …
Problem Regarding Ommited Variable in Fixed Effects ModelHello everyone, I am currently in my thesis about Sustainability Reporting Quality. Basically i want…
Subscribe to:
Post Comments (Atom)
0 Response to Renaming every 3 variable
Post a Comment