schonlau / hammock-stata

Hammock Plot - Stata implementation
Other
1 stars 0 forks source link

allow string values for `hival' #1

Closed schonlau closed 1 year ago

schonlau commented 1 year ago

It would be nice to allow such syntax:

// shakespeare data hammock ..... , hivar(name) hival("Macbeth")

Currently, this is not possible because hival requires a numlist . There is a work around:

gen id=_n hammock ..... , hivar(id) hival(13) // if assume that id=13 is macbeth

schonlau commented 1 year ago

Done v1.2.6