[R] Survey proportions... Can I use population as denominator?

From: David L. Van Brunt, Ph.D. <dlvanbrunt_at_gmail.com>
Date: Wed 24 May 2006 - 08:24:01 EST

Just giving the survey package a spin...

I'm accustomed to stata, and it seems very similar in many respects. One thing is throwing me, however.

I've gotten my data in, and specified the design. Looks like the weighting is right (based on published population estimates from these data), but now I'd like to check my "marginal means" for proportions against those that have been published.

I'd think that "svyratio" would do the trick, but one needs to specify both the numerator and the denominator... I'm looking for a simple ratio of males to females, and this is eluding me. I can't just use a "1" as the denominator, and I want the whole population described as two values that add to one.

The help screens have not been fruitful so far. I'm suffering from interference, I'm sure, where knowledge of another package is getting in the way of seeing what I need to do.

Anyone able to nudge me in the right direction?

Much obliged...

David L. Van Brunt, Ph.D.

	[[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed May 24 08:31:11 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 May 2006 - 08:10:58 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.