-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More customizable etable()
#306
Comments
Sounds great! I can work on this. I can't guarantee when I can finish, but will try as early as possible. |
Super cool, thank you! Of course there is absolutely no time pressure =) |
Hi @s3alfisc I am working on this issue. This is my current realization: etable([fit1, fit2], coef_fmt="b [conf_int_lb, conf_int_ub]", custom_statistics={
"conf_int_lb": [fit1._conf_int[0], fit2._conf_int[0]],
"conf_int_ub": [fit1._conf_int[1], fit2._conf_int[1]],
}) Is this the way of input and output in your mind? Not sure I understand correctly. |
Thanks for the package! Something else that would be nice would be functionality to select coefficients, maybe by regex or only by full match. |
Hi @matthiaskaeding , could you elaborate more about this function? Maybe with some pseudo code / output so that I can make sure I understand correctly. |
Do you mean use expressions to set the order of coefficients and maybe omitting some coefficients? |
Can add pseudo code later, but I meant omitting coefficients. My use case was regressing y on treatment plus controls, and I wanted to have an table for the 'treatment' coefficient only. That might be pretty common. |
Thanks! This is useful. I will add it in my next PR. |
Hi @Wenzhi-Ding - this looks great! It is exactly what I had in mind, thank you =) I'm looking forward to the PR! @matthiaskaeding, your feature request makes excellent sense, and I think it would be fairly easy to implement.
Thanks for picking this up as well @Wenzhi-Ding =) |
Great, thanks! For my use, something using a regex like its done in str_sub in the R-package str_sub would be most convenient:
|
This grammar looks nice. I will implement in this way as well as an additional way to explicitly set which variables to be displayed and the order of variables. |
Hi @matthiaskaeding, I draft a version for what you said. Please see whether this makes sense to you. Drafted documentation:
Orginal output etable([fit1, fit2, fit3], coef_fmt="b (se)\nt [p]")
Example 1 etable([fit1, fit2, fit3], coef_fmt="b (se) \n t [p]", coef_pat=["X1", "cep"])
Example 2 etable([fit1, fit2, fit3], coef_fmt="b (se) \n t [p]", coef_pat=["cep"], coef_pat_negate=True)
|
@Wenzhi-Ding - I just merged #b0503e0. Thanks so much for it! 🎉 |
And btw, this syntax makes excellent sense to me =) etable([fit1, fit2, fit3], coef_fmt="b (se) \n t [p]", coef_pat=["X1", "cep"]) Once implemented, I will add a similar function argument to both the |
Thanks for merging the pull request! I think For example, first keep all coefficient names with numbers by etable([fit1, fit2, fit3], coef_fmt="b (se)\nt [p]", keep=['\d'], drop=["f"])
|
Hi, nice, yes makes sense to me! |
Thanks for your comments! I add support for single string input now. Here is the updated documentation. (I change the
|
I have just merged @Wenzhi-Ding's second PR on this and will publish a new version to PyPi soon - I think we can close this PR for now? Or do you have any other suggestions? Thanks for all your efforts @Wenzhi-Ding , and thanks for the feedback @matthiaskaeding! |
Version |
Thanks for merging the code and publishing new version @s3alfisc! And thanks @matthiaskaeding for the great comments! Please let me know if anything I can contribute. I will also keep close look at issues to see whether there is something I can pick up : ) |
Hi Wenzhi, I updated #218 with many, many points on how to further improve pyfixest (and I've also send you an email!) =) |
It would be great if
etable()
would be even more customizable.I.e. it would be nice to allow users to:
Feols
,Fepois
, andFeiv
as_confint
.One way to allow this would be to add a
custom_statistics
argument toetable()
, e.g. apd.Series
with a name and length equal to the number of models passed toetable()
.@Wenzhi-Ding, would you maybe be willing to / interested in picking this up?
The text was updated successfully, but these errors were encountered: