-
Notifications
You must be signed in to change notification settings - Fork 45
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
Unexpected behaviour for avg_slopes()
when variable name in the grid equal name of standard output columns
#697
Comments
Thanks a lot for the report. I appreciate it. Should be fixed now (stricter). Reserved keywords are here: https://github.com/vincentarelbundock/marginaleffects/blob/main/R/sanitize_variables.R#L60 |
Thanks! Isn't |
Good catch, but I think I should remove the |
You can retrieve the |
See this example, where a non-focal variable is names
group
in one case andgroups
in the other case. I don't think this behaviour is intentional? Maybe you should also check for "masked" column names? Btw, which variable names are not "allowed"?group
,type
,term
? (and se/ci/p related - but also more?)Created on 2023-02-25 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: