[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: tabulate with gen
tab foo, gen(foo_)
all the time to create dummy variables based on the values of foo - I get
foo_1, foo_2, etc.
Does any one have a technique (I won't call it a trick) for having the
extension be the actual value of foo? For example, I have health care center
numbers that are NOT continuously numbered from 1 to 100, so the dummy and the
root value quickly get out of synch:
tab center, gen(center_)
creates center_3 that corresponds to center==5, center_4 corresponds to
Seems like a recipe for disaster when generating reports....!
I can generate a do file to rename them, but I though someone else might have
solved this problem.
Dartmouth Hitchcock Medical Center
Clinical Research/Department of Medicine
One Medical Center Drive
Lebanon, NH 03756
Fax (603) 653-3554
Pedestrians on the Sidewalk of Average Intelligence, hie thee to the nearest
underpass. Itis raining baloney.
* For searches and help try: