# Bayesian Modeling of Spatio-Temporal Data with R

## Documentation for package ‘bmstdr’ version 0.8.2

- DESCRIPTION file.
- User guides, package vignettes and other documentation.

## Help Pages

argo_floats_atlantic_2003 | Temperature and salinity data from Argo floats in the North Atlantic Ocean at three layers of depth: surface (less than 50 meters), mid-layer (between 475-525 meters) and deep (975 to 1025 meters) during 2003.
Bcartime | Bayesian regression model fitting for areal and areal spatio-temporal data. Calculates parameter estimates, validation statistics, and estimated values of several Bayesian model choice criteria.
BCauchy | Cauchy prior simulation example.
Bmchoice | Model choice criteria calculation for univariate normal model for both known and unknown sigma^2
Bmoving_sptime | Model fitting and validation for spatio-temporal data from moving sensors in time.
bmstdr_variogram | Calculates and plots the variogram cloud and an estimated variogram.
Bnormal | N(theta, sigma2): Using different methods.
Bspatial | Bayesian regression model fitting for point referenced spatial data. Calculates parameter estimates, validation statistics, and estimated values of several Bayesian model choice criteria.
Bsptime | Bayesian regression model fitting for point referenced spatio-temporal data. Calculates parameter estimates, validation statistics, and estimated values of several Bayesian model choice criteria.
calculate_dic | Calculate DIC function. Has two arguments: (1) log full likelihood at thetahat and (2) vector of log-likelihood at the theta samples Calculate the DIC criteria values
calculate_validation_statistics | Calculates the four validation statistics: RMSE, MAE, CRPS and coverage given the observed values and MCMC iterates.
calculate_waic | Calculate WAIC function. Has the sole argument component wise likelihood at thetahat samples. v must be a matrix Calculate the WAIC criteria values
coef.bmstdr | Prints and returns the estimates of the coefficients
colpalette | The color palette used to draw maps to illustrate the package bmstdr, see Sahu (2022) It has the values in order: dodgerblue4, dodgerblue2, firebrick2, firebrick4 and purple.
engdeaths | Number of weekly Covid-19 deaths and cases in the 313 local Local Authority Districts, Counties and Unitary Authorities (LADCUA) in England during the 20 peaks in the first peak from March 13 to July 31, 2020.
engtotals | Total number of weekly Covid-19 deaths and cases in the 313 local Local Authority Districts, Counties and Unitary Authorities (LADCUA) in England during the first peak from March 13 to July 31, 2020.
fig11.13.plot | Draws a time series (ribbon) plot by combining fitted and predicted values
fitted.bmstdr | Extract fitted values from bmstdr objects.
fnc.delete.map.XYZ | This function is used to delete values outside the state of New York
getvalidrows | Returns a vector of row numbers for validation.
get_parameter_estimates | Obtains parameter estimates from MCMC samples
get_validation_summaries | Obtains suitable validation summary statistics from MCMC samples obtained for validation.
gridnyspatial | Values of three covariates for 100 grid locations in New York averaged over the 62 days during the months of July and August, 2006.
gridnysptime | Values of three covariates for 100 grid locations in New York for the 62 days during the months of July and August, 2006.
hitandfalsealarm | Calculate the hit and false alarm rates
is.bmstdr | Is it a bmstdr model fitted object?
materncov | Banerjee, Carlin and Gelfand (2015) Mat'ern covariance function
maternfun | Banerjee et al Mat'ern covariance function
nyspatial | Average ozone concentration values and three covariates from 28 sites in New York.
nysptime | Daily 8-hour maximum ozone concentration values and three covariates from 28 sites in New York for the 62 days during the months of July and August, 2006.
obs_v_pred_plot | Observed against predicted plot
phichoicep | Calculates the validation statistics using the spatial model with a given range of values of the decay parameter phi.
phichoice_sp | Grid search method for choosing phi Calculates the validation statistics using the spatial model with a given range of values of the decay parameter phi.
plot.bmstdr | Plot method for bmstdr objects.
print.bmstdr | Provides basic information regarding the fitted model.
resid.bmstdr | Extract residuals from a bmstdr fitted object.
residuals.bmstdr | Extract residuals from a bmstdr fitted object.
summary.bmstdr | Provides basic summaries of model fitting.
terms.bmstdr | Prints the terms
Weng | A 313 by 313 proximity matrix for the 313 LADCUAS in England. Each entry is either 0 or 1 and is 1 if the corresponding row and column LADCUAs share a common boundary.
ydata | Average air pollution values from 28 sites in New York.