search for: pns2013design

Displaying 1 result from an estimated 1 matches for "pns2013design".

2017 Dec 04
1
svyglm
..., ################################################# library(survey)####change to 0 and 1 variable outcomedent2<-ifelse(consdentcat2==2,0,1)table(dent2)?dent2<-as.factor(dent2)str(dent2)reg<-cbind(reg, dent2) #tchange to factor?str(sexo)reg$sexo <- as.factor((reg$sexo)) ################# pns2013design<-svydesign(id=~upa, nest=TRUE, strata = estrato, weight = peso, data = reg) PNS<-svyglm(dent2~sexo,design=pns2013design, method="logistic", data = reg) Error in logistic(x = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,? :?? unused arguments (x = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1...