Closed economoser closed 4 years ago
This is not so much of a bug as maybe a design flaw. I purposely disallowed that in case the user tried to pass something that is allowed with by but that I wouldn't account for... However, in this case I force the input to be a single variable, so it might be OK.
I'l probably allow the by prefix in the next release. In the meantime you can comment out lines 152 to 155 in gegen.ado as a quickfix (i.e. these lines).
It seems that, oddly, the -rank- subcommand of -gegen- does not support a by-option, while the original -egen- command does. Maybe a bug? See example below: