R/all_func.R
krig.Rd
Use predict.ssnbayes() instead. It will take an observed and a prediction data frame. It requires the same number of observation/locations per day. It requires location id (locID) and points id (pid). The locID are unique for each site. The pid is unique for each observation. Missing values are allowed in the response but not in the covariates.
krig(
object = object,
mat_all_preds = mat_all_preds,
nsamples = 10,
start = 1,
chunk_size = 50,
obs_data = obs_data,
pred_data = pred_data,
net = net,
seed = seed
)
A stanfit object returned from ssnbayes
A list with the distance/weights matrices
The number of samples to draw from the posterior distributions. (nsamples <= iter)
(optional) The starting location id
(optional) the number of locID to make prediction from
The observed data frame
The predicted data frame
(optional) Network from the SSN object
(optional) A seed for reproducibility
A data frame