Re: [R] svydesign syntax and deviance!

2010-08-10 Thread Thomas Lumley
On Sat, 31 Jul 2010, aline uwimana wrote: Thank you Thomas,  if i understand what you say below i need to use glm in order to have the deviance and consider it for the model with svyglm and choose the best model. I use  glm and svyglm for two models but don't have deviance for the svyglm. As i

Re: [R] svydesign syntax and deviance!

2010-07-31 Thread aline uwimana
Thank you Thomas, if i understand what you say below i need to use glm in order to have the deviance and consider it for the model with svyglm and choose the best model. I use glm and svyglm for two models but don't have deviance for the svyglm. As i need to choose with the two models it is corre

Re: [R] svydesign syntax and deviance!

2010-07-30 Thread Thomas Lumley
On Sat, 31 Jul 2010, aline uwimana wrote: This message is for those familiar with the survey package. I need to do regression logistic and choose the best model which explain the impact of the indepndent variables by using AIC,BIC,... > sum.coef<-summary(svyglm(y~x1+x2+x3, design=design, famil

[R] svydesign syntax and deviance!

2010-07-30 Thread aline uwimana
This message is for those familiar with the survey package. I need to do regression logistic and choose the best model which explain the impact of the indepndent variables by using AIC,BIC,... > sum.coef<-summary(svyglm(y~x1+x2+x3, design=design, family=quasibinomial(), data=data))$deviance is t