[R] svyby and svyratio in the Thomas Lumley's survey package

From: Smith, Phil <pzs6_at_CDC.GOV>
Date: Fri 24 Feb 2006 - 03:24:51 EST

Dear R-ers:

I'm using Thomas Lumley's "survey" package.

I'd like to compute survey ratio estimates (numerator=~utd , denominator=~one) for each of serval domains using by=~factor(domain).

I can't quite work out the syntax for the call to the "svyby" function. I try:

svyby( numerator=~ utd, denominator=~one , by=~ factor(domain) , design=nis , svyratio )

and I get an error that says that "domain" is not found. (nis is the design object)

Can someone steer me into the correct syntax?  


Phil Smith

CDC         [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Feb 24 05:12:28 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:43 EST