sim_RRi | R Documentation |
A data frame containing a simulated RR interval (RRi) signal generated using the dual-logistic model as described by Castillo-Aguilar et al. (2025). The data are produced by first computing a theoretical RRi curve based on specified model parameters, then adding Gaussian noise to mimic natural variability, and finally introducing ectopic beats by modifying 5% of the data points (multiplying by a factor of 0.3 or 1.7). This simulated dataset is intended for demonstrating and testing the preprocessing and modeling functions provided in the CardioCurveR package.
sim_RRi
A data frame with n
rows and 2 variables:
A numeric vector of time points (in seconds).
A numeric vector of simulated RR interval values (in milliseconds), including added noise and simulated ectopic beats.
The dual-logistic model is defined as:
RRi(t) = \alpha + \frac{\beta}{1 + \exp\{\lambda (t - \tau)\}} + \frac{-c \cdot \beta}{1 + \exp\{\phi (t - \tau - \delta)\}},
where \alpha
is the baseline RRi level, \beta
controls the amplitude of the drop,
\lambda
and \tau
define the drop phase, and c
, \phi
, and \delta
govern the recovery.
Simulated data generated using the dual-logistic model and random noise.
Castillo-Aguilar, et al. (2025). Enhancing Cardiovascular Monitoring: A Non-linear Model for Characterizing RR Interval Fluctuations in Exercise and Recovery. Scientific Reports, 15(1), 8628.
data(sim_RRi)
head(sim_RRi)
# Plot tha data
library(ggplot2)
ggplot(sim_RRi, aes(time, RRi_simulated)) +
geom_line(linewidth = 1/4, col = "purple") +
labs(x = "Time (s)", y = "RRi (ms)",
title = "Simulated RRi Signal with Ectopic Beats") +
theme_minimal()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.