Hi all, I am a new user to STATA. I want to rename 12 different variables: Instead of coding 12 different lines such as below--is there a better way to do it? Thanks.
---
rename d_201801 d1
rename d_201802 d2
rename d_201801 d3
rename d_201801 d4
rename d_201806 d5
rename d_201823 d6
rename d_201824 d7
rename d_201801 d8
rename d_201901 d9
rename d_201901 d10
rename d_201901 d11
rename d_201926 d12
Related Posts with Help with loop for rename function
generate variable that can change every yearHi guys, I wanna thank you first, cause I have received so much help here. This is such a great foru…
estimating percentiles of gamma distributionHi, I'm a new stata user and currently I'm trying to fit a gamma distribution to my data and compute…
tobit post-estimationI am trying to do a avplot after my tobit estimation to check for outliers/ extreme values here are…
Omitted Variable in Margin Order Probit/LogitDear all, I'm having troubles with a simple ordered probit model. Indeed, I am doing a research to …
spread one number within a groupI have a data set looking like this, when fic is not USA, local_markup is missing value. For the mis…
Subscribe to:
Post Comments (Atom)
0 Response to Help with loop for rename function
Post a Comment