spte_meanest {SpTe2M} | R Documentation |
Estimate the spatio-temporal mean function
Description
The function spte_meanest
provides a major tool for estimating the
spatio-temporal mean function nonparametrically
(cf., Yang and Qiu 2018 and 2022).
Usage
spte_meanest(y, st, ht = NULL, hs = NULL, cor = FALSE, stE = NULL)
Arguments
y |
A vector of spatio-temporal observations. |
st |
A three-column matrix specifying the spatial locations and times for all the
spatio-temporal observations in |
ht |
The temporal kernel bandwidth |
hs |
The spatial kernel bandwidth |
cor |
A logical indicator where |
stE |
A three-column matrix specifying the spatial locations and times where
we want to calculate the estimate of the mean. Default is NULL, and
|
Value
bandwidth |
The bandwidths ( |
stE |
Same as the one in the arguments. |
muhat |
The estimated mean values at the spatial locations and times
specified by |
Author(s)
Kai Yang kayang@mcw.edu and Peihua Qiu
References
Yang, K. and Qiu, P. (2018). Spatio-Temporal Incidence Rate Data Analysis by Nonparametric Regression. Statistics in Medicine, 37, 2094-2107.
Yang, K. and Qiu, P. (2022). A Three-Step Local Smoothing Approach for Estimating the Mean and Covariance Functions of Spatio-Temporal Data. Annals of the Institute of Statistical Mathematics, 74, 49-68.
Examples
library(SpTe2M)
data(sim_dat)
y <- sim_dat$y; st <- sim_dat$st
ids <- 1:500; y.sub <- y[ids]; st.sub <- st[ids,]
cov.est <- spte_meanest(y.sub,st.sub)