Hello,
Is there a way to compute summary statistics (mean) of many possibly overlapping subgroups in one command ? I could do this with the table, c() if the groups were not overlapping. The idea is to have something like (mean var1 if condition1) (mean var2 if condition2) (mean var3 if condition3) ... where an observation can validate many conditions i, j, k. Of course, it possible to do it separately with sum var if condition for each variable. But the number of variable is high (more than 100). Any help ? Thank you.
Related Posts with Statistics on different subgroups
Question about regression outputHi, I do have the following data firm level data: Code: * Example generated by -dataex-. To insta…
Examples in did2s stata help commandI did a search in Stata, in the help stata command on 'did2s' and try to run their first example (se…
How do I calculate time duration from date in rows?Hi all, I have an example dataset below. I am trying to calculate the duration between the start "d…
How to label data by keywords using shortcuts?I am trying to label names to ethics in my dataset A, so far I've collected all the names in my data…
Regression with binary dependent variableDear all, I'm a student and a new user of Stata. I have some problems with the following regression.…
Subscribe to:
Post Comments (Atom)
0 Response to Statistics on different subgroups
Post a Comment