search for: sample_weight

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

2009 Apr 02
1
problem with svyglm()
Hello, I'm trying to use the function svyglm in the library survey. I create a data survey object: data_svy<- svydesign(id=~PSU, strata=~sample_domain, weights=~sample_weight, data=data, nest=TRUE) and I try to use svyglm() with little success: R<-svyglm(data_svy[,4]~(data_svy[,iCol]==listModality[[iVar]] [iMod]),design=data_svy, family=binomial(link="logit") Error in svyglm.survey.design(data_svy[, 4] ~ (data_svy[, iCol] == listModality[[iVar]][iMod]...