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

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -