Description Usage Arguments Value
View source: R/build_stack_and_formula.R
Build data stack and formula for AR model
1 2 3 | build_stack_and_formula(Data, x_col, y_col, time_col, response_col, order,
covariate_cols, ValidationData = NULL, prediction_steps = 0, mesh2d,
mesh1d)
|
Data |
dataframe containing all variables and covariates and time and location of each observation |
x_col |
name of column containing position on x access (longitude) of each location |
y_col |
name of column containing position on y access (latitude) of each location |
time_col |
name of column containing time point of each observation |
response_col |
name of column containing variable of interest |
order |
order of autoregressive model |
covariate_cols |
vector containing name of all columns containing covariates |
ValidationData |
dataframe containing the data for validating the predictions |
prediction_steps |
Number of steps ahead to be predicted, validation data must also be provided |
mesh2d |
2d mesh |
mesh1d |
1d mesh |
list containing the data stack and the formula
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.