I would like to quickly know the key stats (mean, quartiles) of a variable (age) across certain other variable (group).
Naturally, my thought went to doing something like
Unfortunately, "codebook may not be combined with by".
Any suggestions / workarounds to achieve the same result?
I suppose I could do something like
etc i.e. a command for each group, but that's not very elegant, and if there are a lot of groups, then a bit unweildy.
Naturally, my thought went to doing something like
Code:
bysort grp: codebook age
Any suggestions / workarounds to achieve the same result?
I suppose I could do something like
Code:
codebook age if grp == 1
Comment