jamesfeigenbaum / textablr

R Package to Output Regression Tables
9 stars 0 forks source link

Customize statistics names #17

Open jamesfeigenbaum opened 5 years ago

jamesfeigenbaum commented 5 years ago

Right now, the textablr_estout function takes a vector of summary statistics to include. But it draws the proper names ("Observations", "R2", etc) from internal "stuff".

Make this a named vector like with FEs and variable labels.

jamesfeigenbaum commented 5 years ago

Could also accept another named vector with formatting choices (number of decimal points)?

jamesfeigenbaum commented 5 years ago

Best way to do this is then stitch together the three columns (stat terms, stat proper names, and the formatting code) at the top of sumstat_master.R and then use the tibble downstream like now

jamesfeigenbaum commented 5 years ago

If you want to customize the statistic names, you have to do all of them. Only putting in one won't do it. Change this at some point because you might want sumstat_include = c("People" = "nobs", "clusters", "Ymean", "Ysd") to work...