bp_stages {bp} | R Documentation |
Alternative Blood Pressure Stages
Description
Adds BP_CLASS, SBP_Category, and DBP_Category columns to supplied dataframe.
Usage
bp_stages(
data,
sbp,
dbp,
inc_low = TRUE,
inc_crisis = TRUE,
data_screen = TRUE,
SUL = 240,
SLL = 50,
DUL = 140,
DLL = 40,
adj_sbp_dbp = TRUE
)
Arguments
data |
User-supplied dataset containing blood pressure data. Must contain data for Systolic blood pressure and Diastolic blood pressure at a minimum. |
sbp |
column name corresponding to systolic blood pressure (SBP) |
dbp |
column name corresponding to diastolic blood pressure (DBP) |
inc_low |
A TRUE / FALSE indicator of whether or not to include the "Low" (Hypotension) category to the scatter plot. The range for Hypotension is set from a minimum of 25 for DBP or 80 for SBP, or the corresponding minimum value for either category from the data until 60 for DBP and 100 for SBP. |
inc_crisis |
A TRUE / FALSE indicator of whether or not to include the Hypertensive "Crisis" category to the scatter plot. The range for crisis is any value above 180 for SBP or above 120 for DBP. |
data_screen |
Default to TRUE. data_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: |
Details
Supplied dataframe must adhere to the unified format using the process_data
function.
Value
A dataframe with additional columns corresponding to the stages of high blood pressure and the supplementary SBP / DBP categories
References
Omboni, S., Parati, G*., Zanchetti, A., Mancia, G. Calculation of trough: peak ratio of antihypertensive treatment from ambulatory blood pressure: methodological aspects Journal of Hypertension. October 1995 - Volume 13 - Issue 10 - p 1105-1112 doi: 10.1097/00004872-199510000-00005
Examples
# 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.")