You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/classifications.R
+42-2Lines changed: 42 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@
8
8
#' . If missing, prevalence will not be calculated for any biomarker because micronutrient status cut offs are sex-specific.
9
9
#' @param age A vector of ages in years for the individuals in the dataset. It can also be a \code{lubridate::duration} object which is then converted to years. For example: if you have age in months, you can create a lubridate duration object like this \code{lubridate::duration(age_in_months, units = "months")}.
10
10
#' @param pregnancy_status (Optional) A vector indicating pregnancy status. Accepted values: For Yes ("Y", "y", or "1"), No ("N", "n", or "2"), Unknown ("unk" or "3" or blank).
11
-
#' When Unknown ("unk" or "3" or blank), it will be categorized as "not pregnant"
11
+
#' When Unknown ("unk" or "3" or blank), it will be categorized as "not pregnant".
12
+
#' Note that 'pregnancy_status' should not be missing when 'pregnancyweeks' or 'pregnancymonths' contain valid, non-missing values. Missing 'pregnancy_status' in these cases will be considered as 'not pregnant'.
12
13
#' @param lactating_status (Optional) A vector indicating lactation status. Accepted values: For Yes ("Y", "y", or "1"), No ("N", "n", or "2").
13
14
#' @param pregnancyweeks (Optional) A numeric vector indicating the number of weeks of pregnancy.
14
15
#' @param pregnancymonths (Optional) A numeric vector indicating the number of months of pregnancy.
0 commit comments