It seems the var names you've put are not the same as in the design object:
all variables must be in design= argument : that means the object you've
assigned in mydesign - svydesign(ids=~vill_neigh_code+clust,
strata=~strat, weights=~sweight, data=mydata)
Check the spelling. Note that the
It seems the var names you've put are not the same as in the design object:
all variables must be in design= argument : that means the object you've
assigned in mydesign - svydesign(ids=~vill_neigh_code+clust,
strata=~strat, weights=~sweight, data=mydata)
Check the spelling. Note that the
Regarding regression models, there's a bit of discussion on whether or not
it is necessary to take the sample design into account (for instance, SPSS
doesn't), so you can run them just normally without much remorse. Or get
your life complicated (see below).
Your xtabs call seems OK to me.
The references are here: http://manning.com/kabacoff/excerpt_references.pdf
(they will be included on the next printing too, got omitted by mistake)
Regards,
Pablo
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
The references are here: http://manning.com/kabacoff/excerpt_references.pdf
(they will be included on the next printing too, got omitted by mistake)
regards,
Pablo
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
5 matches
Mail list logo