Prepare case data and predictor variables for forecast models
prep_data.Rd
Prepare case data and predictor variables for forecast models
Arguments
- raw_data
data.frame containing the variables
- y_var
name of variable to predict
- lagged_vars
string vector of names of variables to lag
- scaled_vars
string vector of names of variables to scale
- lag_n
number of months by which to lag the lagged variables. Default = 3.
- graph_poly
sf object to be used to create graph for INLA model (optional). Default = NULL.