I suspect I've missed an obvious solution, but is there a way to display the assigned name of a temporary variable when displaying results? To be concrete, consider:
Code:
sysuse auto
tempvar trep
gen `trep'=rep78
tab `trep'
which yields:
Code:
   __000001 |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |          2        2.90        2.90
          2 |          8       11.59       14.49
          3 |         30       43.48       57.97
          4 |         18       26.09       84.06
          5 |         11       15.94      100.00
------------+-----------------------------------
      Total |         69      100.00
So my question amounts to whether there's any way to have trep displayed in the results table instead of __000001.