Hi!

I have a dataset, where my variables are named with _smallt2 or _larget2. I'm trying to rename these variables such that, _smallt is replaced by '1' and _larget is replaced by 2. Does anyone know how I can do this on Stata?

Thanks.