By-Group Stats
Posted: Wed Dec 29, 2010 10:38 am
Hey Guys, Happy Holidays!
I wonder if there is a way to create by-group stats (using @kurtsby as an example) for a bunch of variables in a panel model all at once (without looping (k+1) times) and write the results to a matrix/table (one value per variable per cross section) without creating another table/series/group? I just want to have a clean (n*t)*k matrix that I could further lookup on. If all of these are not possible, is there an easier way to just write the value of each cross section to a table/matrix than looping it t times to get the (n*(t-1))+1 value (that's just the 1st value of each cross section, n is max of cellid)? Please let me know. Thanks.
Tchaithonov
I wonder if there is a way to create by-group stats (using @kurtsby as an example) for a bunch of variables in a panel model all at once (without looping (k+1) times) and write the results to a matrix/table (one value per variable per cross section) without creating another table/series/group? I just want to have a clean (n*t)*k matrix that I could further lookup on. If all of these are not possible, is there an easier way to just write the value of each cross section to a table/matrix than looping it t times to get the (n*(t-1))+1 value (that's just the 1st value of each cross section, n is max of cellid)? Please let me know. Thanks.
Tchaithonov