Trying to use the survey package command svydesign to make sure our data is properly weighted and has proper estimates.
I tried the above, the survey design object seems okay then I try the logic and I keep getting the error of:
Error in svyglm.survey.design(vote_2012 ~ education + unemployed + female + :
all variables must be in design= argument
I already set the variables=NULL because, from my understanding, that defaults it to using the data frame (e.g. - all of the variables) so I don't understand why it keeps telling me to specify the variables again...?
If someone could clue me in as to what I'm missing, I would greatly appreciate it.
Hey all,
Trying to use the survey package command svydesign to make sure our data is properly weighted and has proper estimates.
I tried the above, the survey design object seems okay then I try the logic and I keep getting the error of:
Error in svyglm.survey.design(vote_2012 ~ education + unemployed + female + : all variables must be in design= argument
I already set the variables=NULL because, from my understanding, that defaults it to using the data frame (e.g. - all of the variables) so I don't understand why it keeps telling me to specify the variables again...?
If someone could clue me in as to what I'm missing, I would greatly appreciate it.
Marie