Closed strengejacke closed 1 month ago
Why not call?
predictions(m1$gam, variables = "x1", hypothesis = "pairwise")
I just checked, and it's not quite the same model class. Internally, we check for class c("gam", "glm", "lm")
produced by the mgcv
package.
There's already a thread about adding support for gamm4
models. I am still interested in this, and it should be possible. I'm not sure I'll have time in the near future, but this should be pretty easy.
The only tricky aspect might be class inheritance conflicts because gamm4
uses the imprecise gam
class.
There's an existing issue to add support for gamm4
. It is listed in the "master" Support New Models issue, and I'll link here and close: https://github.com/vincentarelbundock/marginaleffects/issues/947
Ok, thanks for clarification!
Why not call?
predictions(m1$gam, variables = "x1", hypothesis = "pairwise")
That's what I did in the second example, which also failed.
Models of class
gamm4
, respectively the$gam
part is not supported, althoughgam
is listed as supported class. What could be the issue here?Created on 2024-05-06 with reprex v2.1.0