but, I do not want to change the number of observations
I suppose there is some convoluted way to do what you are looking for with the data in wide layout. But it's clunky, and kludgy. And not wanting to increase the number of observations sounds like an arbitrary whim that doesn't justify writing opaque error-prone code to do something that is reducible to a transparent one-liner once the data is long. Even if you do have a compelling reason to have the data in wide layout, you can always just -reshape wide- after the logit and you'll have it back (though, I emphasize, you will probably only make your life more difficult in whatever comes next if you do that.)
Comment