build_stack_and_formula: Build data stack and formula for AR model

Description Usage Arguments Value

View source: R/build_stack_and_formula.R

Description

Build data stack and formula for AR model

Usage

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)

Arguments

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

Value

list containing the data stack and the formula


bjeffrey92/MyINLA documentation built on Aug. 12, 2021, 10:01 a.m.