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

Re: [R] svydesign syntax

2010-07-30 Thread Thomas Lumley
On Thu, 22 Jul 2010, R user wrote: This message is for those familiar with the survey package. I need to fit a weighted Cox model to accommodate the sampling weights as I have a case-control study with controls sampled at random from a database in a ratio 2:1 to cases (whom were all sampled). I

[R] svydesign syntax

2010-07-22 Thread R user
This message is for those familiar with the survey package. I need to fit a weighted Cox model to accommodate the sampling weights as I have a case-control study with controls sampled at random from a database in a ratio 2:1 to cases (whom were all sampled). I want to make sure I am using the righ