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?
Gen match =_n1 replace match = _id if match ==. How can you have missing value ??Richard Hofler can you help? As I believe you were the author of this code re post 5 on here https:/…
Dropping observations after the first time the treatment turns offHello, I need some help finding a solution to the following problem: I want to drop all the observat…
ivreg2-weak instrument robust inferenceDear All, I was a bit confused about the validity of estimates after ivreg2. If the Kleibergen-Paap…
how to change capital letters in all variable names into small letters?I have 1300 variables, and all the variables contain capital letters in their names. I want all of t…
Panel Data Logged Differences Help!!Hello thank you!! I'm doing a research project on whether or not individual CEO campaign contributio…
Subscribe to:
Post Comments (Atom)
0 Response to TABSTAT: How to group my summary statistics?
Post a Comment