
Extract ECG-derived respiration using PCA
Source:R/advanced-modality-bridges.R
extract_gazepoint_edr_pca.RdExtracts an ECG-derived respiration proxy from beat-level ECG morphology features using principal component analysis. This function requires ECG-derived morphology columns, such as QRS amplitudes, widths, or sampled beat-shape features. It is not intended for HR, IBI, or PPG-only data.
Usage
extract_gazepoint_edr_pca(
dat,
ecg_cols,
time_col = NULL,
group_cols = NULL,
n_components = 1,
scale = TRUE,
output_prefix = "edr_pca"
)