Hello together.
I need help and search for a simple way to "group" my summary statistics.
My current Stata code is as follows: by year,sort :tabstat variable1 variable2 , s(n mean ...)
It gives me the number of observations and mean as output for each year...
... however, I now like to group the years by let's say (2000, 2001, 2002 and 2003) and (2004, 2005, 2006, 2007).
Is there an easy way to do this without creating new variables?
Thank you!
Konstantin
Related Posts with TABSTAT: How to group my summary statistics?
tsfill for time series data, ending fill at specific dates by subgroupsI have panel data, with an id variable, two time variables: t0 (first date); t1(end date), and a spe…
Cutting out the appropriate end of the variables Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(quarter Dl…
nehurdle available on SSCHi everybody, I would like to announce that thanks to Kit Baum, nehurdle is now available at SSC. …
Error message r(699)Hi there, I'm trying to install factortest and sortl. It has worked previously, but now when I sear…
Help with xtreg, time fixed effects, local authority fixed effectsHi, I am new to Stata and therefore would appreciate some help with actually running my panel regres…
Subscribe to:
Post Comments (Atom)
0 Response to TABSTAT: How to group my summary statistics?
Post a Comment