R/lipponen.R
calculate_rmssd_orthostatic_enhanced.RdCalculate RMSSD with Phase-Specific Artefact Correction (Orthostatic Test)
calculate_rmssd_orthostatic_enhanced(
data,
secondary_threshold_percent_lying = 20,
secondary_threshold_percent_standing = 20,
transition_exclusion_time = 45,
initial_stabilization_time = 60,
min_segment_length = 30,
min_segment_beats = 30,
...
)A dplyr::tibble with a 'time' column (RR intervals). Assumes
the first 3 minutes are lying and the next 3 minutes are standing.
Numeric, percentage change threshold for secondary filtering during the lying phase (default: 20).
Numeric, percentage change threshold for secondary filtering during the standing phase (default: 20).
Numeric, duration (in seconds) to exclude around the transition (default: 45). Increased default.
Numeric, duration (in seconds) to exclude at the beginning of the lying phase (default: 60).
Numeric, minimum segment length in seconds (default: 30).
Integer, minimum number of beats in a segment (default: 30)
other parameters passed to detect_hrv_artefacts
A list containing:
rmssd_lying: RMSSD for the lying phase (or NA).
rmssd_standing: RMSSD for the standing phase (or NA).
rmssd_values: A numeric vector of all segment RMSSD values.
segment_lengths: A numeric vector of segment lengths.
segment_beat_counts: An integer vector of segment beat counts.
aggregated_rmssd: Aggregated RMSSD (mean of a ll segments).
n_segments: Number of segments