leeper / prediction

Tidy, Type-Safe 'prediction()' Methods
https://cran.r-project.org/package=prediction
Other
89 stars 14 forks source link

Fix a bug in `margins()` with `glmerMod` objects (#129) #43

Closed vincentarelbundock closed 4 years ago

vincentarelbundock commented 4 years ago

Please ensure the following before submitting a PR:

In combination with my concurrent PR at leeper/margins this fixes Issue #129 of margins.

Here, I am simply improving find_data.merMod. I have written no new code for this. I just copied over the find_data.default method, and modified the model[['class']] by model@class, because glmerMod is a S4.

leeper commented 4 years ago

thanks!