[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: different order of variable values in tab command
I am not clear whether 1 0 is as much
as you want here, but I think the answer
is the same for more extensive examples:
you need to negate your numeric variable -- or more
generally set up a one-to-one reversal -- and then
attach value labels that show what you
sysuse foreign, clear
gen newforeign = - foreign
label def newforeign -1 "1"
label val newforeign newforeign
For more complicated problems, check out -labmask-
from -labutil- on SSC.
> Is there any option (not yet in the manual) to present de values of a
> variable in a different way of the default, which orders de
> values from
> smaller to larger (0 1 2 ...)?
> I would like to present the results in the order 1 0.
* For searches and help try: