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...

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to