search for: dent2

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

Did you mean: dent
2017 Dec 04
1
svyglm
...ht, strata and cluster (three-stage sample) with PNS data (national health survey) and is giving error. I describe below the commands used. I could not make the code reproducible properly. Thanks, ################################################# 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(d...