View source: R/posterior_inference.R
predictBSTFA | R Documentation |
Estimate/predict values of the time series at a specific location.
predictBSTFA(
out,
location = NULL,
type = "mean",
ci.level = c(0.025, 0.975),
new_x = NULL,
pred.int = FALSE
)
out |
Output from BSTFA or BSTFAfull. |
location |
Either a single integer indicating the location in the data set to provide predictions or a vector of length 2 providing the longitude and latitude of the new location. If |
type |
One of |
ci.level |
If |
new_x |
If the original model included covariates |
pred.int |
Logical scalar indicating whether to include additional uncertainty for posterior predictive intervals ( |
A matrix or vector of estimated/predicted values for location
.
Candace Berrett and Adam Simpson
data(out.sm)
attach(out.sm)
loc1means <- predictBSTFA(out.sm, location=1, pred.int=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.