extend_covar_time_series: Extend a covariate time series forward

Description Usage Arguments Value

View source: R/covariate_prep_functions.R

Description

Helper function to extend a covariate time series to the last year modeled by copying forward the most recent year of data available.

Usage

1
extend_covar_time_series(covar_data, model_years)

Arguments

covar_data

data.table containing covariates with a 'year' field

model_year

Vector of years to be included in modeling

Value

covariate data.table, with years extended to the most recent year of data


njhenry/covidemr documentation built on Feb. 2, 2022, 2:31 a.m.