Re: [R] vcov function and cross terms

2014-10-15 Thread Anthony Damico
it might be slightly different, but i think the result is very close to a tsl result (which hasn't been implemented).. could you use this? mns<-svyby(~api00+api99, ~stype, rclus1, svytotal,covmat=TRUE) vcov(mns) On Wed, Oct 15, 2014 at 9:27 AM, Daniela Droguett < daniela.droguett.l...@gmail.c

[R] vcov function and cross terms

2014-10-15 Thread Daniela Droguett
Hi, I would like to apply the vcov function from the survey package for the variables api00 and api99 grouped by the stype variable which can assume H, M and E categories. ​From the code in the survey package manual:​ ​data(api) dclus1<-svydesign(id=~dnum, weights=~pw, data=apiclus1, fpc=~fpc) r