Is there a way to use one of the functions in the survey package to get
a table of estimated percentages (or proportions) and the standard error
for each? For example, suppose that AGECODE AND SEX are two factors
with 5 and 2 levels.
The 5x2 AGECODE x SEX table would have the estimated percentage of
persons in each cell,
100*(sum of weights in the cell) / (sum of all weights)
and the std error of the percentage. The std error would have to be
computed by linearization or replication since the denominator of each
percentage is an estimate. I'd also like the option of getting row,
column, or total percentages.
Is this possible? A colleague and I have read the manuals closely and
tried many variations with svytable, svytotal with no success.
Version R 1.9.1 on Windows XP
TIA,
Richard Valliant
[[alternative HTML version deleted]]
______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html