[R] stargazer summary statistics by group

sbihorel Sebastien.Bihorel at cognigencorp.com
Sun Mar 6 21:34:52 CET 2016


Hi,

I saw a post on this topic on stackoverflow a while ago. It does not 
seem to have got any reply... Just trying my luck here.

Is there any way to use stargazer to create a table of descriptive 
statistics by group such as the one below?

Thanks

#-------------|-Stat--|--A--|--B--|--Overall-|
# Variable 1  | Stat1 |     |     |          |
#-------------|-------|-----|-----|----------|
#             | Stat2 |     | |          |
#-------------|-------|-----|-----|----------|
#             | ...   |     |     |          |
#-------------|-------|-----|-----|----------|
# Variable 2  | Stat1 |     |     |          |
#-------------|-------|-----|-----|----------|
#             | Stat2 |     | |          |
#-------------|-------|-----|-----|----------|
#             | ...   |     |     |          |
#-------------|-------|-----|-----|----------|
# Variable ...| Stat1 |     |     |          |
#-------------|-------|-----|-----|----------|
#             | Stat2 |     | |          |
#-------------|-------|-----|-----|----------|
#             | ...   |     |     |          |
#-------------|-------|-----|-----|----------|

stat1 and stat2 could mean, sd, median, etc...



More information about the R-help mailing list