RE: [R] Subpopulations in Complex Surveys

2003-02-24 Thread Thompson, Trevor
: 0.1394 Residual Deviance: 0.09631 AIC: 6.601 -trevor -Original Message- From: Thomas Lumley [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 1:17 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [R] Subpopulations in Complex Surveys On Wed, 19 Feb 2003 [EMAIL

RE: [R] Subpopulations in Complex Surveys

2003-02-24 Thread Thomas Lumley
On Mon, 24 Feb 2003, Thompson, Trevor wrote: For svymean, can't you just pass the subpopulation into the design argument? Yes, but you get the wrong standard errors (very slightly) in stratified designs. If you compare the subsetting approach to the regression approach you will find

Re: [R] Subpopulations in Complex Surveys

2003-02-23 Thread TyagiAnupam
In a message dated 2/23/03 1:19:39 PM Eastern Standard Time, [EMAIL PROTECTED] writes: On Wed, 19 Feb 2003 [EMAIL PROTECTED] wrote: 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?

Re: [R] Subpopulations in Complex Surveys

2003-02-23 Thread Spencer Graves
I'm not familiar with the survey systems, any array or data.frame can be subsetted using a logical vector. For example, let Data = data.frame(sex = ..., age =, ..., ...). Then, Sel.fem50 - (Data$sex==Female) (Data$age 50) fem50Answers - FUN(... data=Data[Sel.fem50,]) If you

[R] Subpopulations in Complex Surveys

2003-02-19 Thread TyagiAnupam
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