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

derivatives() should ignore random effect smooths #168

Closed
garincle opened this issue May 4, 2022 · 2 comments
Closed

derivatives() should ignore random effect smooths #168

garincle opened this issue May 4, 2022 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@garincle
Copy link

garincle commented May 4, 2022

Hello, when using the derivative function I have got the following error:

Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L,  : 
  ‘min’ not meaningful for factors

please see:
https://stats.stackexchange.com/questions/573346/gam-statistically-comparing-fit-when-changing-covariates-in-gratia-r/574052#574052

for a detail description of the error,
let me know if you need more information,

Thank you again Gavin!

@gavinsimpson gavinsimpson changed the title Error when using derivatives() derivatives() should ignore random effect smooths May 5, 2022
@gavinsimpson
Copy link
Owner

derivatives() doesn't know how to handle random effect smooths nor know to ignore them. Use the term argument to derivatives() to select the smooth you want derivatives for.

@garincle
Copy link
Author

garincle commented May 5, 2022

it works perfectly, thank you!

@gavinsimpson gavinsimpson added the bug Something isn't working label May 5, 2022
@gavinsimpson gavinsimpson added this to the 0.8 milestone May 5, 2022
gavinsimpson added a commit that referenced this issue Jul 6, 2022
gavinsimpson added a commit that referenced this issue Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants