arv {bp} | R Documentation |
Average Real Variability (ARV)
Description
THIS IS A DEPRECATED FUNCTION. USE bp_arv INSTEAD.
Usage
arv(
data,
inc_date = FALSE,
subj = NULL,
bp_type = 0,
add_groups = NULL,
inc_wake = TRUE
)
Arguments
data |
Required argument. Pre-processed dataframe containing SBP and
DBP with optional ID, VISIT, WAKE, and DATE columns if available.
Use |
inc_date |
Optional argument. Default is FALSE. As ABPM data typically
overlaps due to falling asleep on one date and waking up on another, the |
subj |
Optional argument. Allows the user to specify and subset specific subjects
from the |
bp_type |
Optional argument. Determines whether to calculate ARV for SBP values or DBP values. Default is 0 corresponding to output for both SBP & DBP. For both SBP and DBP ARV values use bp_type = 0, for SBP-only use bp_type = 1, and for DBP-only use bp_type = 2 |
add_groups |
Optional argument. Allows the user to aggregate the data by an
additional "group" to further refine the output. The supplied input must be a
character vector with the strings corresponding to existing column names of the
processed |
inc_wake |
Optional argument corresponding to whether or not to include |
Details
Calculate the Average Real Variability (ARV) at various levels of granularity based on what is supplied (ID, VISIT, WAKE, and / or DATE). ARV is a measure of dispersion that takes into account the temporal structure of the data and relies on the sum of absolute differences in successive observations, unlike the successive variation (SV) which relies on the sum of squared differences.
Value
A tibble object with a row corresponding to each subject, or alternatively a row corresponding to each date, if inc_date = TRUE. The resulting tibble consists of:
-
ID
: The unique identifier of the subject. For single-subject datasets, ID = 1 -
VISIT
: (If applicable) Corresponds to the visit # of the subject, if more than 1 -
WAKE
: (If applicable) Corresponds to the awake status of the subject (0 = asleep | 1 = awake) -
ARV_SBP
/ARV_DBP
: Calculates the average of the absolute differences between successive measurements. The resulting value averages across the granularity grouping for however many observations are present. -
N
: The number of observations for that particular grouping. Ifinc_date = TRUE
,N
corresponds to the number of observations for that date. Ifinc_date = FALSE
, N corresponds to the number of observations for the most granular grouping available (i.e. a combination ofID
,VISIT
, andWAKE
) Any add_groups variables supplied to function argument will be present as a column in the resulting tibble.
References
Mena et al. (2005) A reliable index for the prognostic significance of blood pressure variability Journal of Hypertension 23(5).505-11, doi: 10.1097/01.hjh.0000160205.81652.5a.
Examples
# Load data
data(bp_hypnos)
data(bp_jhs)
# Process bp_hypnos
hypnos_proc <- process_data(bp_hypnos, sbp = "SYST", dbp = "DIAST", date_time = "date.time",
id = "id", wake = "wake", visit = "visit", hr = "hr", pp ="pp", map = "map", rpp = "rpp")
# Process bp_jhs data
jhs_proc <- process_data(bp_jhs, sbp = "Sys.mmHg.", dbp = "Dias.mmHg.", date_time = "DateTime",
hr = "Pulse.bpm.")
## Not run:
# ARV Calculation
bp_arv(hypnos_proc, add_groups = c("SBP_Category"))
bp_arv(jhs_proc, inc_date = TRUE)
## End(Not run)