bp_stages | R Documentation |
Adds BP_CLASS, SBP_Category, and DBP_Category columns to supplied dataframe.
bp_stages( data, sbp, dbp, bp_type = c("hbpm", "abpm", "ap"), inc_low = TRUE, inc_crisis = TRUE, data_screen = TRUE, SUL = 240, SLL = 50, DUL = 140, DLL = 40, adj_sbp_dbp = TRUE, guidelines = c("Lee_2020", "AHA", "Custom"), bp_cutoffs = list(c(100, 120, 130, 140, 180), c(60, 80, 80, 90, 120)) )
data |
User-supplied dataset containing blood pressure data. Must contain data for Systolic blood pressure and Diastolic blood pressure at a minimum. |
sbp |
Required column name (character string) corresponding to Systolic Blood Pressure (mmHg) |
dbp |
Required column name (character string) corresponding to Diastolic Blood Pressure (mmHg) |
bp_type |
Required argument specifying which of the three BP data types
("HBPM", "ABPM", or "AP") the input data is. Default HBPM - Home Blood Pressure Monitor | ABPM - Ambulatory Blood Pressure | AP - Arterial Pressure NOTE: |
inc_low |
Optional logical argument dictating whether or not to include the "Low" category for BP classification column (and the supplementary SBP/DBP Category columns). Default set to TRUE. |
inc_crisis |
Optional logical argument dictating whether or not to include the "Crisis" category for BP classification column (and the supplementary SBP/DBP Category columns). Default set to TRUE. |
data_screen |
Optional logical argument; default set to TRUE. Screens for extreme values in the data
for both |
SUL |
Systolic Upper Limit (SUL). If |
SLL |
Systolic Lower Limit (SLL). If |
DUL |
Diastolic Upper Limit (DUL). If |
DLL |
Diastolic Lower Limit (DLL). If |
adj_sbp_dbp |
Logical indicator to dictate whether or not to run helper functions that adjust / process
SBP & DBP columns in supplied data set. Default set to: |
guidelines |
A string designation for the guidelines to follow when mapping BP
readings to a respective BP stage. |
bp_cutoffs |
A list containing two vectors corresponding to SBP and DBP cutoffs, respectively. Each vector contains 5 values. The SBP vector (100, 120, 130, 140, 180) corresponds to the upper limits for the following stages: Low (0-100), Normal (100-120), Elevated (120-130), Stage 1 Hypertension (130-140), Stage 2 Hypertension (140-180). When utilizing Lee et al (2020) guidelines, additional stages are included: Isolated Systolic Hypertension for Stage 1 (ISH - S1) (130-140), Isolated Diastolic Hypertension for Stage 1 (IDH - S1) (0-130), ISH - S2 (140-180), and IDH - S2 (0-140). The DBP vector (60, 80, 80, 90, 120) corresponds to the upper limits for the following stages: Low (0-60), Normal (60-80), Elevated (0-80), Stage 1 Hypertension (80-90), Stage 2 Hypertension (90-120). The upper limit of the "Elevated" category repeats in the DBP vector and matches that of Normal. This because according to most guidelines, there is no distinction between DBP cutoffs for Normal and Elevated - these stages are discerned by SBP, not DBP. When utilizing Lee et al (2020) guidelines, additional stages are included: Isolated Diastolic Hypertension for Stage 1 (ISH - S1) (0-80), Isolated Diastolic Hypertension for Stage 1 (IDH - S1) (80-90), ISH - S2 (0-90), and IDH - S2 (90-120). Any SBP reading below 100 or DBP reading below 60 is considered Hypotension ("Low"). Any SBP reading above 180 or DBP reading above 120 is considered a Crisis. When If |
Supplied dataframe must adhere to the unified format using the process_data
function.
A dataframe with additional columns corresponding to the stages of blood pressure and the supplementary SBP / DBP categories
Lee H, Yano Y, Cho SMJ, Park JH, Park S, Lloyd-Jones DM, et al. Cardiovascular risk of isolated systolic or diastolic hypertension in young adults. Circulation. 2020;141(22):1778–1786. doi: 0.1161/CIRCULATIONAHA.119.044838
Muntner, P., Carey, R. M., Jamerson, K., Wright Jr, J. T., & Whelton, P. K. (2019). Rationale for ambulatory and home blood pressure monitoring thresholds in the 2017 American College of Cardiology/American Heart Association Guideline. Hypertension, 73(1), 33-38. doi: 10.1161/HYPERTENSIONAHA.118.11946
# Load bp_hypnos data(bp_hypnos) bp_stages(bp_hypnos, sbp = "syst", dbp = "diast") # Load bp_jhs data data(bp_jhs) bp_stages(bp_jhs, sbp = "sys.mmhg.", dbp = "dias.mmhg.")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.