It extracts confidence and prediction bands from the
nls model. It is used only for data cleaning.
predict_bands( .data, time_column = "t", vo2_column = "VO2", cleaning_level = 0.95, cleaning_baseline_fit = c("linear", "exponential") )
The nornalized data retrieved from
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'.
a tibble containing the following columns:
The provided time data.
The provided VO2 data.
The predicted response for that observation.
The residual for a particular point.
Lower limit of the confidence band.
Upper limit of the confidence band.
Lower limit of the prediction band.
Upper limit of the prediction band.