get_variance()
and null_model()
functions not working depending on the way you call the objects of your model
#837
Labels
3 investigators ❔❓
Need to look further into this issue
Bug 🐛
Something isn't working
get_variance
function specific labels
Dear easystats team.
I was trying to use the
get_variance()
function of the insight package, and I got the following warning:While doing the traceback of that warning, I found out that the function
null_model()
"does not like" the way I call the response variable in a glmmTMB model. So, when I usenull_model(my_model)
, I getas an outcome, even when there's nothing "wrong" with my model. Such outcome affects the use of other functions like
R2()
from the performance package. Additionally, some less experienced users of R might not bet able to find what is actually happening, because, in this specific case, the warning message is misleading.Here is a reproducible example using the attached csv file, where, as you will see, the
null_model()
function will only work correctly formodel2
andmodel3
:dfexample.csv
where you will find the following outcome:
Here is my session info:
Thank you very much for your time.
The text was updated successfully, but these errors were encountered: