[R] stargazer summary statistics by group
Boris Steipe
boris.steipe at utoronto.ca
Sun Mar 6 22:04:15 CET 2016
Does this entry on the Stargazer Cheatsheet come close enough to what you want?
http://jakeruss.com/cheatsheets/stargazer.html#the-default-summary-statistics-table
B.
On Mar 6, 2016, at 3:34 PM, sbihorel <Sebastien.Bihorel at cognigencorp.com> wrote:
> 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 at 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.
More information about the R-help
mailing list