Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

predict() method for svy_vglm()? #2

Open
rbcavanaugh opened this issue Jan 27, 2023 · 1 comment
Open

predict() method for svy_vglm()? #2

rbcavanaugh opened this issue Jan 27, 2023 · 1 comment

Comments

@rbcavanaugh
Copy link

Thanks for a great package.

By any chance, is there a predict() method for svy_vglm? This would be very useful for post-processing and generating figures. Currently, predict(mod) returns the following on a svy_rep design using vglm. As a side note, I've tried survey::svyolr() as well but I believe it also does not have a predict method.

Error in UseMethod("predict") : 
  no applicable method for 'predict' applied to an object of class "c('svyrep_vglm', 'svy_vglm')"

Cheers

@symbalex
Copy link

symbalex commented May 2, 2023

You can predict on svyvgam_model$fit for expected values!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants