Learn R Programming

deepspat (version 0.3.1)

predict.deepspat_nn_ST_GP: Deep compositional spatio-temporal model (with nearest neighbors)

Description

Prediction function for the fitted deepspat_nn_ST_GP object

Usage

# S3 method for deepspat_nn_ST_GP
predict(object, newdata, nn_id, ...)

Value

predict.deepspat_nn_ST_GP returns a list with the following item

"df_pred"

Data frame containing the predictions/prediction intervals at the prediction locations

"obs_swarped"

Observation locations on the spatial warped domain

"obs_twarped"

Observation locations on the temporal warped domain

"newdata_swarped"

New prediction locations on the spatial warped domain

"newdata_twarped"

New prediction locations on the temporal warped domain

Arguments

object

the deepspat_nn_ST_GP object

newdata

data frame containing the prediction locations

nn_id

nearest neighbors index

...

currently unused