stringify() doubt
by Riccardo (Jack) Lucchetti
First, let me give an example of what I'm trying to do:
<hansl>
nulldata 10
l = defarray("a", "b", "a")
x = randgen(i, 1, 3)
stringify(x, l)
</hansl>
does not work, because the label for the string for value 1 is the same as
the one for value 3. Fine, I can see the rationale for this.
However: imagine I have a cross-sectional dataset of people, where each
person has a unique numerical id, but there happen to be two different
people whose name is "John Smith". At the moment, we don't seem to have a
way to stringify a "name" variable, apart from writing some code for
relabelling the first John Smith to "John Smith (1)" and the second one to
"John Smith (2)". I don't like this very much.
Ideas, anyone?
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------