I'm using a large dataset and have run several logistic regressions with svyglm(). I am now examining a dependent variable with at least 5 possible outcomes. I discovered svymultinom but I'm having trouble with the code. I get the following error:
mmodel <- svymultinom(outcome3 ~ married, dataDesign)
Error in UseMethod("withReplicates", design) : no applicable method for 'withReplicates' applied to an object of class "c('survey.design2', 'survey.design')"
Can anyone provide an example of how to use svymultinom?
It looks as though
svymultinom(you should specify the package it's in) works for replicate-weight designs and that your design isn't a replicate-weights design.I would use the new
svyVGAMpackage instead,You could also do
but the
svyVGAM::svy_vglmsolution is cleaner