Dear Stata Expert,

May I seek your help in variable transformation? I need to truncate the variable into 0 and 1. Please suggest to me the code for it. The variable statistics are as follows:
wcetr is the cash effective tax rate.

Variable | Obs Mean Std. Dev. Min Max
-------------+---------------------------------------------------------
wcetr | 23,398 .2764125 .3194056 -1.931427 1.925373

Thanks in advance