search for: crc10yr

Displaying 2 results from an estimated 2 matches for "crc10yr".

2003 Feb 19
5
Subpopulations in Complex Surveys
Hi, is there a way to analyze subpopulations (e.g. women over 50, those who answered "yes" to a particular question) in a survey using Survey package? Other packages (e.g. Stata, SUDAAN) do this with a subpopulation option to identify the subpopulation for which the analysis shoud be done. I did not see this option in the Survey package. Is there another way to do this?
2003 Feb 12
2
Various Errors using Survey Package
...that it does not allow more than 1 observation per psu [i.e. any(sc > 1)]. Error 2). If I go ahead and specify check.strata=FALSE, then svydesign runs ok. I then tried using the svymean function. In the following example, if I specify na.rm=TRUE, I get the error below: > svymean(nhis.df$crc10yr, design=nhis.design, na.rm=TRUE) Error in rowsum.default(x, strata) : Incorrect length for 'group' I traced this to the svyCprod call within svymean. SvyCprod calls rowsum and the group argument ("strata") appears to be the full length of that column rather than the subset with...