Re: [R] offlist Re: Svy function doesn't work nested in user-defined function

2010-05-21 Thread David Winsemius
On May 21, 2010, at 11:48 AM, Thomas Lumley wrote: On Thu, 20 May 2010, David Winsemius wrote: Almost. Testing with the examples on svytable help page: test <- function(Z){ fmla <- as.formula( paste(" ~ ", paste(c(Z, "stype"), collapse= "+"))) chisq <- svychisq(

Re: [R] offlist Re: Svy function doesn't work nested in user-defined function

2010-05-21 Thread Thomas Lumley
On Thu, 20 May 2010, David Winsemius wrote: Almost. Testing with the examples on svytable help page: test <- function(Z){ fmla <- as.formula( paste(" ~ ", paste(c(Z, "stype"), collapse= "+"))) chisq <- svychisq( fmla, design=rclus1, s

Re: [R] offlist Re: Svy function doesn't work nested in user-defined function

2010-05-20 Thread David Winsemius
On May 20, 2010, at 4:47 PM, David Winsemius wrote: On May 20, 2010, at 4:44 PM, David Winsemius wrote: On May 20, 2010, at 4:32 PM, David Winsemius wrote: On May 20, 2010, at 11:24 AM, Sabatier, Jennifer F. (CDC/OID/ NCHHSTP) wrote: Hi R-help, I posted about this late yesterday bu

Re: [R] offlist Re: Svy function doesn't work nested in user-defined function

2010-05-20 Thread David Winsemius
On May 20, 2010, at 4:44 PM, David Winsemius wrote: On May 20, 2010, at 4:32 PM, David Winsemius wrote: On May 20, 2010, at 11:24 AM, Sabatier, Jennifer F. (CDC/OID/ NCHHSTP) wrote: Hi R-help, I posted about this late yesterday but got no response. I may have put TMI in the original

Re: [R] offlist Re: Svy function doesn't work nested in user-defined function

2010-05-20 Thread David Winsemius
On May 20, 2010, at 4:32 PM, David Winsemius wrote: On May 20, 2010, at 11:24 AM, Sabatier, Jennifer F. (CDC/OID/ NCHHSTP) wrote: Hi R-help, I posted about this late yesterday but got no response. I may have put TMI in the original request. Not to mention I couldn't cut and paste yes