Hello all,
I just reshaped data from long to wide and now have four sets of about 15 variables with the different notations I used in reshaping as part of the variable name and label. I was able to rename the variables in batches, but haven't been able to find a simple way to relabel just the prefix of the variable label.
For example, one variable is labeled "111 countycode", another is "111 testyear". I used 111 to represent 11th Grade ELA testing when reshaping. I'd like to replace all of the 111's with "11th ELA" and leave the suffixes (e.g., countycode, testyear) as they are. I've played around with a few loops but haven't been able to figure out how to do this correctly.
I appreciate any help you can offer!
Related Posts with Replacing Prefix of Variable Labels
Looking for files issuesHello everyone, So I am doing an assignment. Our professor gave us zipped .dta files to use in Stat…
How to draw bivariate random vector (v,u) which is bivariate normal, but with a correlation which depends on a third variable x?Dear all, I would like to simulate some data: a bivariate random vector (v,u) which is bivariate no…
estpost with xtsumHi all I have used the command estpost sum esttab using nsw_12_summary_all.csv, cells("mean") to …
Finding a target variabel across datasets in the same directory*Hi, I've several datasets in the directory, and want to know which ones contain my variable of inter…
Fixed effects model with high rho and negative corr(u_i, Xb): a problem?I'm running some regression models with panel data from Brazilian municipalities (N = 64,708, Number…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing Prefix of Variable Labels
Post a Comment