is.na() applied to non-(list or vector) of type 'NULL'Error in names(datlist) <- names(first) :
'names' attribute [3] must be the same length as the vector [2]
m <- glm(y ~ x1*x2, offset=log_pop, data=d)
plot_model(m, type = "pred", terms = c("x1", "x2", "log_pop"))
ERROR: is.na() applied to non-(list or vector) of type 'NULL'Error in names(datlist) <- names(first) :
'names' attribute [3] must be the same length as the vector [2]
names(sjstats::model_frame(m))`
returns a model frame where the offset term is called (offset).
Hi,
This fix does not appear to be working for me. I installed the latest sjstats:
and then I installed the dev versions in sequence as you suggest in the sjstats readme:
The new installations had no effect on the errors thrown by the following code:
is.na() applied to non-(list or vector) of type 'NULL'Error in names(datlist) <- names(first) : 'names' attribute [3] must be the same length as the vector [2]
'names' attribute [3] must be the same length as the vector [2]
returns a model frame where the offset term is called
(offset)
.