Added ci = FALSE to svyquantile function#88
Open
chipmanj wants to merge 1 commit into
Open
Conversation
Owner
|
Thanks for tracking this down! I'm investigating the R-CMD-check issue with ubuntu devel. |
Contributor
Author
|
You're welcome!!! |
Owner
|
TODO: Figure out the following error: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi Kazuki,
I too came across issue #83. As noted by, @docvock, the source of the problem is that survey updated the default output of the svyquantile function. Here's further elaboration:
The previous default input for svyquantile was ci=FALSE. Now it is ci=TRUE.
survey(version 4.0): https://www.rdocumentation.org/packages/survey/versions/4.0/topics/svyquantile
survey(version 4.1): https://rdrr.io/cran/survey/man/svyquantile.html
Under survey (v4.1), svyQuant (within tableone) returns a quantile, 95% ci, and standard error (a numeric vector of size 4) for each variable. Previously, svyQuant only returned a quantile (singleton) for each variable.
As a downstream effect, the error regarding rounding occurs when updating the class of the result object (created within svyCreateContTable). I was not able to track down why this particular error occurred. However, the proposed pull request resolves the original problem by setting ci = FALSE when calling svyquantile (within tableone::svyQuant).
I tested the updates using the NHANES example within ?svyCreateTableOne.
I hope you are well and best wishes,
Jonathan Chipman