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

st: RE: Re: [-renvars-]

From   "Nick Cox" <>
To   <>
Subject   st: RE: Re: [-renvars-]
Date   Wed, 22 Jul 2009 10:28:57 +0100

Thanks for the plug. Please note that -renvars- was written jointly by
Jeroen Weesie and myself. 


Neil Shephard

On Wed, Jul 22, 2009 at 9:15 AM, Martin Baumgarten<>
> Hello,
> when I use the reshape command in Stata like this
> reshape wide Alltrade, i( reporter time ) j (partner) string
> stata does everything fine, but I end up with the new variables names
all starting with the prefix "Alltrade-"
> I dont want this though. Is there any way to stop Stata adding this

It depends, what is the remaining stub of all of the variables?  If it
starts with a letter then you'll be fine, but you can't have variables
named with purely numbers.  Had you included these details it would
have been possible to advise further, but without this information
I've no idea if removing the prefix will leave you with illegal
variable names

You'll probably find -renvars- by Nick Cox [...] the most useful utility
for renaming variables [...]

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index