Re: [R] Svyglm Error in Survey Package

2016-09-25 Thread Courtney Benjamin
Hello Dr. Fox, Thank you very much for your recommendations and I will take action on following them. I appreciate your willingness to provide guidance on my novice questions. Sincerely, Courtney From: Fox, John Sent: Sunday, September 25, 2016 9:21 AM

Re: [R] Svyglm Error in Survey Package

2016-09-25 Thread Fox, John
Dear Courtney, You're confusing a function call, na.action(na.omit), with an argument specification, na.action=na.omit (and, in any event, there is no na.action() function). But you don't have to specify na.action=na.omit, because na.omit (which produces a complete-case analysis) is the defaul

Re: [R] Svyglm Error in Survey Package

2016-09-24 Thread Fox, John
Dear Courtney, I think that you're confused about how to use the subset argument to svyglm() and about what the subset() function returns. The subset argument should be a logical expression, evaluating to TRUE or FALSE for each case; subset() returns a data set (e.g., a "survey.design" object).

Re: [R] Svyglm Error in Survey Package

2016-09-23 Thread Anthony Damico
hi could you make this a minimal reproducible example? On Sep 24, 2016 12:03 PM, "Courtney Benjamin" wrote: > In attempting to use the svyglm call in the R Survey Package, I am > receiving the error: Error in pwt[i] : invalid subscript type 'list' > > I have not been able to find a lot of inform