While performing a weighted logistic regression I got the error "notice! number of non-integer successes in a binomial glm" Why is this happening?
model<- glm(outcome~treatment, weights=weight, data=mydata, family=binomial(link=log))
betaiptw<- coef(model)
SE<- sqrt(diag(vcovHC(model, type ="HC0")))
rr<- exp(betaiptw[2])
lcl<- exp(betaiptw[2] -1.96*SE[2])
ucl<- exp(betaiptw[2] +1.96*SE[2])
c(lcl, rr, ucl)
I didn't expect the error message.