Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: SV: st: value labels, rename and merge

From   "Nick Cox" <>
To   <>
Subject   RE: SV: st: value labels, rename and merge
Date   Tue, 13 Apr 2010 16:04:40 +0100

-renvars- from SJ offers various devices for renaming. 


Tomas Lind

The variable names and the example I gave was I bit simplified. When I
to manipulate your syntax to fit our specific problem I got into

The variable names are not just: 
Q1, Q2, Q3 ... . 

They are:
id, est, dat, Q1, Q2, Q3 ... . 

I do not simply want to change to:
 w_Q1, w_Q2, w_Q3 ... . 

I want to get rid of "Q" in the names and change the names to:
id, est, dat, q12p1, q12p2, q12p3 ... .

To change your code to add q12 instead of w_ is straight forward, but to
rid of Q and get the loop running is more than I can achieve. Any help

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index