fixest icon indicating copy to clipboard operation
fixest copied to clipboard

Function to extract name of dependent variable

Open mattysimonson opened this issue 2 years ago • 1 comments

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!

mattysimonson avatar Jan 24 '23 17:01 mattysimonson

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

grantmcdermott avatar Jan 29 '23 02:01 grantmcdermott