Just type
renpfix a_
This should remove prefix "a_" from all variables. (at least in Stata 8)
ben
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]
> Sent: Wednesday, September 03, 2003 9:31 AM
> To: [email protected]
> Subject: st: removing prefix
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dear STATA-Listers,
>
> I have a data set which uses different variable prefixes for different
> waves of the panel. So the variable name of the first wave is:
> a_varname
>
> To work with all the waves using the same commands I would like to
> remove the different prefixes (a_ for the first wave, b_ for the
> second and so on). To this end I used the "renpfix" command. However I
> could not figure out how I could replace the prefix for "nothing",
> i.e. I want to change
>
> a_varname ===> varname
>
> How can that be done?
>
> Thanks,
> Ben Kriechel
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.0.2i
>
> iQA/AwUBP1WLBudb8S0dfCWJEQIkGACgpj2OCI9/ETKzqrl97JTXseeGDLIAoM+s
> xaYSGnxz25fPbf9Ekd8X73GF
> =WBNK
> -----END PGP SIGNATURE-----
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/