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?
Binning times in hours, rounding error?Hello, I am trying to truncate times to only the hour using floor so that I can merge all data for …
Help!!! Convergence error in calculating of productivity by SFA - "Kumbhakar, S.C, 2015"Hi everyone, I am calculating total factor productivity by the SFA model in using STATA. When I ru…
text file without the .txt extensionHi Stata Users. I have multiple text file but without .txt extension. As I have many files I do not …
Marginsplot axis value labelsI'm using marginsplot to graph a repeated measures anova, with the timepoints labeled t0-t9. This me…
How to construct the distribution of propensity scores calculated from the pre-match conditional logistic regression?Dear Statalists, Hope my message finds you well. I am trying to construct an estimated propensity …
Subscribe to:
Post Comments (Atom)
0 Response to TABSTAT: How to group my summary statistics?
Post a Comment