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
Multinomial logistic regression in paneldata: femlogit vs. mlogit,cluster(panelid)Dear all, I would like to run a multinomial logistic regression for (unbalanced) panel data in Stat…
Large coefficients for FE, POLS and REGood day to you I am estimating Tanzania export performance using gravity model , and my coefficient…
Population size (with sampling weights) != actual population sizeI'm performing some analyses were I need to draw a stratified two-stage sample from some population …
Trouble merging multiple files with a loopHi, I have 62 files that are numbered in sequential order (1,2,3...) that I want to merge into and …
Link suppliers-customer's transaction records by yearsHi Stata Users, I am using Stata for my project that links supplier-customer transaction records. …
Subscribe to:
Post Comments (Atom)
0 Response to Help with loop for rename function
Post a Comment