lrberge / fixest

Fixed-effects estimations
https://lrberge.github.io/fixest/
362 stars 59 forks source link

Function to extract name of dependent variable #381

Open mattysimonson opened 1 year ago

mattysimonson commented 1 year ago

Would it be possible for you to add a function to extract the name of the dependent variable? Right now I use

str_split(formula(model), "~")[[2]]

but it would be nice to have an extractor function akin to nobs(), tstat(), etc. My main use here is to plot the results in ggplot2, which requires me to first tidy up all the relevant labels and numbers in a data.frame (or tibble).

Outstanding package, by the way!

grantmcdermott commented 1 year ago

Without trying to deflect the specific request, does ggiplot handle your use-case? http://grantmcdermott.com/ggiplot/