Timeline for R: subsetting survey design fails after raking
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 15, 2020 at 3:31 | answer | added | Thomas Lumley | timeline score: 2 | |
Mar 27, 2019 at 19:28 | comment | added | bschneidr | This question was also asked on Stackoverflow, with a different reproducible example: stackoverflow.com/questions/55384157/… | |
Dec 5, 2016 at 14:16 | comment | added | gRRRR |
@AnthonyDamico Huh, I didn't think of that. Do you think including na.rm=TRUE distorts weights? Will the SE be correct? Pardon if the question is naive; I am not familiar with the innards of various R functions. I though I was supposed to subset the survey design object itself in order to obtain correct survey design elements. Otherwise, I could have just subset the data frame and turned that subset into a new survey design object. Also, this doesn't explain why the subset function doesn't work.
|
|
Dec 5, 2016 at 14:01 | comment | added | Anthony Damico |
do you want svyby(~employed, by = ~female, r1, svymean, vartype = c("se", "ci"),na.rm=TRUE) ?
|
|
Dec 5, 2016 at 13:10 | comment | added | gRRRR | @gung Thank you, I just did that. I hope it shows now. And I hope someone can figure out what's going on with the subset there | |
S Dec 5, 2016 at 13:02 | history | suggested | gRRRR | CC BY-SA 3.0 |
Provided a minimum reproducible example.
|
Dec 5, 2016 at 12:50 | comment | added | gRRRR | @AnthonyDamico I edited the question to provide a sample and code that reproduces the error. I got the message that it will be visible after "peer review." | |
Dec 5, 2016 at 12:50 | comment | added | gung - Reinstate Monica | Please register &/or merge your accounts (you can find information on how to do this in the My Account section of our help center), then you will be able to edit & comment on your own question. | |
Dec 5, 2016 at 12:49 | review | Suggested edits | |||
S Dec 5, 2016 at 13:02 | |||||
Dec 1, 2016 at 10:29 | comment | added | Anthony Damico |
could you please provide a minimal reproducible example? in order for people to help you, we'll need to have access to your r0 object. thanks
|
|
Nov 30, 2016 at 23:24 | history | edited | Carl | CC BY-SA 3.0 |
added 106 characters in body
|
Nov 30, 2016 at 23:05 | review | First posts | |||
Nov 30, 2016 at 23:24 | |||||
Nov 30, 2016 at 23:01 | history | asked | gRRRR | CC BY-SA 3.0 |