R svyby gives error but svytotal works -


i creating descriptive statistic of dataset , when run following works

svytotal(~interaction(w4_prov2011,w4_c_grcurtyp),design=lfcp4.w,na.rm=true) 

but following gives error

svyby(~w4_c_grcurtyp,~w4_prov2011,design=lfcp4.w,svytotal,na.rm=true) 

error in tapply(1:nrow(x), list(factor(strata)), function(index) { :
arguments must have same length

is possible?


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -