add_baseline_predictors: Function to add baseline predictors Offset of hours(1) would...

View source: R/add_predictors.R

add_baseline_predictorsR Documentation

Function to add baseline predictors Offset of hours(1) would mean that everything would be anchored to 1 hour before fixed_start.

Description

Function to add baseline predictors Offset of hours(1) would mean that everything would be anchored to 1 hour before fixed_start.

Usage

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
)

Arguments

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


ML4LHS/gpmodels documentation built on Feb. 1, 2024, 8:31 a.m.