At the moment I am running logistic regressions on individual data with weights. Here is my model:
model <- glm(Dummy_WBT_17~ hinc2 + tmp_b4p_bildung_quote + benefits_7 + benefits_10 + Dummy_PartyID + gender + age_rec + region_rec + urban, weights = weight, data=new3, family=binomial)
In a next step I wanted to calculate standardized regression coefficients with beta glm from 'reghelper' package . But I receive the following error:
beta(model) Error in eval(extras, data, env) : object 'weight' not found
There is no error if I exclude the weights from my model. So I think the error is due to using weights in my model. Do you have any idea how to calculate standardized regression coefficients inculding the weights?