|
8 | 8 | #' |
9 | 9 | #' @return [numeric] The adjusted systolic blood pressure as a numeric. |
10 | 10 | #' |
11 | | -#' @details Blood pressure measurements in survey settings may require adjustment to account for |
| 11 | +#' @details Blood pressure measurements in survey settings may require adjustment to account for |
12 | 12 | #' measurement conditions and equipment differences. This function applies a standardized adjustment |
13 | 13 | #' using the formula: SBP_adj = 11.4 + (0.93 * BPMDPBPS). |
14 | | -#' |
15 | | -#' Non-response handling: Values >= 996 indicate survey non-response and are converted to |
16 | | -#' tagged NA ("b") to distinguish from missing measurements. Negative values are also |
| 14 | +#' |
| 15 | +#' Non-response handling: Values >= 996 indicate survey non-response and are converted to |
| 16 | +#' tagged NA ("b") to distinguish from missing measurements. Negative values are also |
17 | 17 | #' treated as invalid and converted to tagged NA. |
18 | 18 | #' |
19 | 19 | #' @examples |
@@ -51,12 +51,12 @@ adjust_SBP <- function(BPMDPBPS) { |
51 | 51 | #' |
52 | 52 | #' @return [numeric] The adjusted diastolic blood pressure as a numeric. |
53 | 53 | #' |
54 | | -#' @details Blood pressure measurements in survey settings may require adjustment to account for |
| 54 | +#' @details Blood pressure measurements in survey settings may require adjustment to account for |
55 | 55 | #' measurement conditions and equipment differences. This function applies a standardized adjustment |
56 | 56 | #' using the formula: DBP_adj = 15.6 + (0.83 * BPMDPBPD). |
57 | | -#' |
58 | | -#' Non-response handling: Values >= 996 indicate survey non-response and are converted to |
59 | | -#' tagged NA ("b") to distinguish from missing measurements. Negative values are also |
| 57 | +#' |
| 58 | +#' Non-response handling: Values >= 996 indicate survey non-response and are converted to |
| 59 | +#' tagged NA ("b") to distinguish from missing measurements. Negative values are also |
60 | 60 | #' treated as invalid and converted to tagged NA. |
61 | 61 | #' |
62 | 62 | #' @examples |
@@ -130,15 +130,15 @@ adjust_DBP <- function(BPMDPBPD) { |
130 | 130 | #' # Returns: c(1, 2, 1) |
131 | 131 | #' |
132 | 132 | #' @details This function implements clinical guidelines for hypertension classification: |
133 | | -#' |
| 133 | +#' |
134 | 134 | #' **Blood Pressure Thresholds:** |
135 | 135 | #' - General population: >= 140/90 mmHg indicates hypertension |
136 | 136 | #' - Diabetes or CKD patients: >= 130/80 mmHg indicates hypertension (lower threshold) |
137 | | -#' |
| 137 | +#' |
138 | 138 | #' **Medication Logic:** |
139 | 139 | #' - Anyone taking hypertension medication is classified as hypertensive |
140 | 140 | #' - Medication status may be adjusted based on comorbidities (diabetes, CKD, cardiovascular disease) |
141 | | -#' |
| 141 | +#' |
142 | 142 | #' **Non-response Handling:** |
143 | 143 | #' - Values >= 996 indicate survey non-response codes |
144 | 144 | #' - Invalid blood pressure readings result in tagged NA ("b") |
|
0 commit comments