-
Notifications
You must be signed in to change notification settings - Fork 42
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
Comments
I would like to see this as well :) |
I'd be open to a pull request if anyone wants to give it a try. The relevant code fragments are the |
Yes, |
For those interested in re-ordering variable names based on regular expression patterns, here is a workaround.
|
I can submit a pull request when I test the implementation a bit more. See @leifeld Is it ok if I implement it to so that |
@maifeng Thanks, this looks useful. I would be happy to see a pull request, provided you can also do the following:
|
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.
The text was updated successfully, but these errors were encountered: