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?
Assumptions linear regressionsHi everyone, I was wondering what assumptions should absolutely been tested before doing a linear r…
Read yaml fileDoes anyone know of a way to read a .yaml file in Stata? Thank you! …
Clustering under few treated clustersSome general advice sought from the Stata community. Say I'm doing a Difference in Differences exer…
World Health Organisation Cardio vasulcar risk chartWe are conducting research that involves thousands of population Data from country wide survey, the …
Question On Extracting Value Label and assign them as the column name of coefficient matrixHi, My question is about row names in matrix. Below are my code and its output. Code: version …
Subscribe to:
Post Comments (Atom)
0 Response to TABSTAT: How to group my summary statistics?
Post a Comment