I am trying to produce a GLM using glmulti, though when I produce z values for the model, it says that they are characters rather than numerical. This also makes the p value calculation incorrect. The code for producing the importance, z values and p values is as follows:
mmi1<-as.data.frame(coef(res1))
mmi1<-data.frame(Estimate=mmi1$Est, SE=sqrt(mmi1$Uncond), Importance=mmi1$Importance,row.names(mmi1))
mmi1$z<-mmi1$Estimate/mmi1$SE
mmi1$p<-2*pnorm(abs(mmi1$z),lower.tail = FALSE)
names(mmi1)<-c("Estimate", "Std. Error", "Importance", "z value", "Pr(>|z|)")
mmi1$ci.lb<-mmi1[[1]]-qnorm(.975)*mmi1[[2]]
mmi1$ci.ub<-mmi1[[1]]+qnorm(.975)*mmi1[[2]]
mmi1<-mmi1[order(mmi1$Importance, decreasing = TRUE), c(1,2,4:7,3)]
summary(mmi1)
I believe the issue is with the 3rd line of code but I can't figure out what the issue is.
Any help would be appreciated, thanks!