Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

r - glmer models in Rstudio run but show <Object with null pointer> in the global environment

I am using RStudio to create some logistic regression models based on data I collected. I created several different models using glmer() and they worked fine until a few weeks ago. Now when I run the same models using the same data and glmer() I get <Object with null pointer> in the Global Environment, which has never happened before. But there are no problems with the models, no warnings, nothing. When I run the other set of models using lrm() the null pointer problem does not happen. So I suspect the problem might be with the glmer() function itself or something with the lme4 package. Tried updating R version and packages according to some answers I found here to similar problems, but got the same results (now running R version 4.0.2 on OS 10.14.6).

Also, when I try to plot the models’ predictions (and that goes for any of the models) using plot_model() I get this, which also did not happen before

 Warning message:Some model terms could not be found in model data. You probably need to load the data into the environment.

Don’t know if the problems are related or not, but they both started showing up recently. Tried using R and ran all of it there too. Same problems. Can someone please help? I am very new here, so if I did not provide enough information please let me know and I’ll be happy to provide whatever else is needed.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...