add_rolling_outcomes: Add rolling outcomes

View source: R/add_outcomes.R

add_rolling_outcomesR Documentation

Add rolling outcomes

Description

Add rolling outcomes

Usage

add_rolling_outcomes(
  time_frame = NULL,
  variables = NULL,
  category = NULL,
  lookahead = lubridate::hours(48),
  window = lookahead,
  stats = c(mean = mean, min = min, max = max),
  impute = FALSE,
  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

lookahead

A lubridate instant, how far into the future to predict outcome

window

A lubridate instant, break/interval to divide lookahead

stats

A list of summary stats

impute

Carry forward last value

output_file

Logical, whether or not to output to file or console

log_file

Logical, whether or not to write to log

check_size_only

Logical, returns expected number of rows for predictor or predictor chunk if applicable

last_chunk_completed

Integer, the previous chunk completed if chunking is used


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