View source: R/find_iodine_deficiency.R
detect_iodine | R Documentation |
Identification of population iodine intake using urinary iodine concentration
detect_iodine(x, group = c("general", "pregnant", "lactating")) detect_iodine_general(x) detect_iodine_pregnant(x) detect_iodine_lactating(x)
x |
Either the single median value of the urinary iodine (μg/L) of the population of interest or the vector of urinary iodine (μg/L) values of the population of interest. | |||||||||
group |
The population group of interest as described below:
This should be specified using the short-form of the population group of interest. Default to "general". |
A character vector indicating the iodine intake status of the population of interest.
# Create testing data x <- runif(20, min = 10, max = 350) # For individual target group function; detect_iodine_general(x) # school-age-children (6 years or above) detect_iodine_pregnant(x) # pregnant detect_iodine_lactating(x) # lactating or U2 children # For overall population function; detect_iodine(x = x, group = "general") detect_iodine(x = x, group = "pregnant") detect_iodine(x = x, group = "lactating") # test with sample dataset dta <- subset(iodine, group == "Child") detect_iodine(x = dta$iodine, group = "general")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.