-
Notifications
You must be signed in to change notification settings - Fork 28
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
Problem with difference_smooths #143
Comments
Can you try it without any |
Also, what are you hoping to get out of this? Differences for
? I'm not sure it knows internally about the fs smooths, but the differences would be of a different sort for those as the basis includes the group ( |
Sorry for the delay!
For the original model,
I was hoping to get the overall effect of Any clarifications would be much appreciated! Thanks! |
Just to clarify, here is a set of plots produced by gratia's What I really want is to:
I thought that Thank you! |
I think there's a missing word in
which leaves me a little confused as to what doesn't work (models without {itsadug} is doing something different; it is producing conditional differences of estimated values of the response. I haven't implemented this in {gratia} within {itsadug} does this by getting the user to specify As other people have asked for this, I will look into adding a new function |
Thank you again for your quick response! Sorry for any confusion. My original model was:
When I tried I thought you wanted me to try to run this model but exclude "any random effects of the specific type
When I tried Ideally, I would want
I would like to compare those partial "global" effects of Regardless, I really appreciate your explanation of how the |
Turns out I was massively over-thinking this, at least for the case of including group means (the complexity where there are multiple factors just cancels for any reasonable comparison because the level of the second factor you condition on is the same for both groups you are differencing.) From 0.7.3.12 with In figuring all this out I have a function that does the same thing in a much more complex way which is entirely redundant for the simple case of including group means, but it will be useful for reproducing the behaviour of |
Hi Gavin,
I tried to use the difference_smooths function to plot a difference in smooths in a GAMM with random smooths, and got an error. Does the function work for such models, or only for models without random smooths? My model syntax is something like this (I'm not able to share the data themselves but this is a reproduction):
Thank you so much for any insights!
Marishka
The text was updated successfully, but these errors were encountered: