Even faster would be
but the time savings compared to generate would be eaten up by typing this. Also, it gets much more complicated to do this stuff in Mata by groups.
FWIW, I think that c(obs_t) not appearing in creturn list is a "bug"; it has been around since version 14 and it is part of the pdf documentation, so it should be listed.
Code:
mata : st_store(., st_addvar(c("obs_t"), "id3"), (1::st_nobs()))
FWIW, I think that c(obs_t) not appearing in creturn list is a "bug"; it has been around since version 14 and it is part of the pdf documentation, so it should be listed.
Comment