Skip to content
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

Reorder coefficients by regex #62

Open
zauster opened this issue Sep 13, 2017 · 3 comments
Open

Reorder coefficients by regex #62

zauster opened this issue Sep 13, 2017 · 3 comments

Comments

@zauster
Copy link
Contributor

zauster commented Sep 13, 2017

Allow coefficients to be re-ordered by a vector of regex:

Eg:
reorder.coef = c("^log", "^GDP", "^Population")
would put all coefficients that start with "log" on top, then "GDP" and then "Population" coefficients.

Motivation: I routinely have model with some fixed effects and interactions, then I would have to calculate the number of created dummy variables and based on these I could reorder them.

@leifeld leifeld added this to the 1.36.26 milestone Mar 15, 2019
@leifeld leifeld removed this from the 1.36.26 milestone May 28, 2020
@Irazall
Copy link

Irazall commented Oct 4, 2022

I would like to see this as well :)

@leifeld
Copy link
Owner

leifeld commented Jan 19, 2023

I'd be open to a pull request if anyone wants to give it a try. The relevant code fragments are the reorder function, potentially the lines in the texreg, screenreg etc functions that call the reorder function, and two places in the plotreg function, which handles reordering in a different way, I think.

@czucca
Copy link
Collaborator

czucca commented Jan 20, 2023

Yes, plotreg has its own way of reordering. I confirm that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants