View source: R/add_predictors.R
add_baseline_predictors | R Documentation |
Function to add baseline predictors Offset of hours(1) would mean that everything would be anchored to 1 hour before fixed_start.
add_baseline_predictors(
time_frame = NULL,
variables = NULL,
category = NULL,
lookback = lubridate::hours(48),
window = lookback,
offset = lubridate::hours(0),
stats = c(mean = mean, min = min, max = max),
impute = TRUE,
output_file = TRUE,
log_file = TRUE,
check_size_only = FALSE,
last_chunk_completed = NULL
)
time_frame |
A time frame object |
variables |
A vector or list of variable names |
category |
A vector or list of category names |
lookback |
A lubridate instant, length of time in the past to include |
window |
A lubridate instant, break/interval to divide lookback |
offset |
A lubridate instant, amount of time prior to fixed_start to anchor first prediction |
stats |
A list of summary stats |
impute |
Last observation carry forward |
output_file |
Logical, whether or not to output to file or console |
log_file |
Logical, whether or not to write to log |
last_chunk_completed |
Integer, the previous chunk completed if chunking is used |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.