Before calculating the maximum values, the raw data is smoothed. Default
smoothing method is a 30-second rolling average. See the smooth
argument in spiro_smooth
for more options, such as breath-based
averages or digital filtering.
Parameters calculated are the maxima of oxygen uptake (absolute and
relative), carbon dioxide output, minute ventilation, respiratory exchange
ratio (RER), and heart rate. The maximum values are defined as the highest
single data values after the smoothing.
For the maximum RER a different algorithm is used, as the RER during and
after rest may exceed the peak value during exercise. Therefore only values
during the last ten percent of the exercise time are considered for the
RERmax determination. The RERmax calculation works best for data from tests
without rest intervals (e.g., ramp tests) and with attached load protocol
data.