Hello,
I'm getting the feeling that Stata does operations by the id variable after xtset. Just an example:
here, test and test2 are identical. Is this always the case? Or are there cases where that does't happen? I'm a little afraid of leaving out the bysort at some point and an operation is performed over the whole sample and not by category.
Thanks for your help,
Frank
I'm getting the feeling that Stata does operations by the id variable after xtset. Just an example:
Code:
sysuse xtline1, clear xtset person day gen test = l.calories bys person: gen test2 = l.calories
Thanks for your help,
Frank

Comment