Extract confidence and prediction bands for the baseline phase

predict_bands_baseline(
.data,
time_column,
vo2_column,
cleaning_level,
cleaning_baseline_fit
)

## Arguments

.data The nornalized data retrieved from normalize_transitions(). The data should be filtered to only the 'baseline' phase before passing to the function. The name (quoted) of the column containing the time. Depending on the language of your system, this column might not be "t". Therefore, you may specify it here. Default to "t". The name (quoted) of the column containing the absolute oxygen uptake (VO2) data. Default to 'VO2'. A numeric scalar between 0 and 1 giving the confidence level for the intervals to be calculated. A character indicating what kind of fit to perform for each baseline. Either 'linear' or 'exponential'.

## Value

a tibble containing the following columns:

x

The provided time data.

y

The provided VO2 data.

.fitted

The predicted response for that observation.

.resid

The residual for a particular point.

lwr_conf

Lower limit of the confidence band.

upr_conf

Upper limit of the confidence band.

lwr_pred

Lower limit of the prediction band.

upr_pred

Upper limit of the prediction band.