Re: [R] Can you get the DEFT from svyratio?

2016-12-07 Thread Chris Webb
imates svyratio(~referred, ~seen, svy_tbl_10_2) confint(svyratio(~referred, ~seen, svy_tbl_10_2), df=degf(svy_tbl_10_2)) # DEFF deff(svyratio(~referred, ~seen, svy_tbl_10_2, deff=TRUE)) # DEFT (fails) sqrt(deff(svyratio(~referred, ~seen, svy_tbl_10_2, deff="replace"))) On Wed, Dec 7, 20

[R] Can you get the DEFT from svyratio?

2016-12-07 Thread Chris Webb
qrt(deff(svytotal(~referred, svy_tbl_10_2, deff="replace"))) To recap: can you get the DEFT from svyratio? Sincerely, Chris Webb [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, s

[R] Survey package help with svystandardize

2013-01-03 Thread Chris Webb
I am trying to age standardize using the svystandardize package in R. I have successfully managed to hit my SUDAAN based targets for estimates by sex, but not the total. The total is only a little different, but I'd like some help knowing why it isn't exact. I've included the SUDAAN code that gener