Skip to content

Regarding some questions about DII #224

Discussion options

You must be logged in to vote

Thanks a lot for your detailed feedback.

You are right. The vitamin D does not need unit conversion in NHANES. Also, the DR1TP183 should not be treated as N6FAT. Instead, DR1TP182 should be used. I have updated these parts.

And yes, just modify REPEATNUM = 2. Please refer to the following example. You should use $ to specify the variable for each parameter.
#' @examples
#' data("DHQ3_exp")
#' DII(DHQ3_exp, DHQ3_exp$Respondent ID, 1, DHQ3_exp$Alcohol (g), DHQ3_exp$Vitamin B12 (mcg), DHQ3_exp$Vitamin B6 (mg))

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@huasheng12121
Comment options

@huasheng12121
Comment options

@jamesjiadazhan
Comment options

@huasheng12121
Comment options

Answer selected by jamesjiadazhan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants