The relsa_baselines function calculates baseline levels for the provided reference set.

relsa_baselines(dataset = NULL, bslday = -1, variables = NULL, turnvars = NULL)

Arguments

dataset

sample data frame

bslday

time point in the data frame used for baseline calculation (i.e. day=-1)

variables

variables to use as references (must be loaded!)

turnvars

variable names with "turned" direction (e.g. c("hr","temp"))

Value

baseline list with reference variables set to 100 %, maximum reached values and some characteristics