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

How to estimate OR and 95%CI using Predict funtion for svyglm model? #139

Open
jiangaimin1995 opened this issue Jan 13, 2024 · 0 comments
Open

Comments

@jiangaimin1995
Copy link

design<-svydesign(data=data1115, id=~id, strata=~strata, weights=~weightage, nest=TRUE)
svy.fit<-svyglm(outcome ~ age + gender + drugs + educations + income, family=quasibinomial(link="logit"), design = design)
y<-predict(svy.fit)
y<-as.numeric(y)
#transform into probability
y<-exp(y)/(1+exp(y))

And then, how should I get the OR and 95%CI?

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

1 participant