nsrobapred1 | R Documentation |
This function uses the sampling distribution of parameters obtained from the function tsroba
to predict values at unknown locations.
nsrobapred1(xpred, coordspred, obj)
xpred |
Values of the X design matrix for prediction coordinates. |
coordspred |
Points coordinates to be predicted. |
obj |
object of the class "nsroba" (see |
This function predicts using the sampling distribution of parameters obtained from the function nsroba
and the conditional normal distribution of the predicted values given the data.
This function returns a vector with the predicted values at the specified locations.
Jose A. Ordonez, Marcos O. Prates, Larissa A. Matos, Victor H. Lachos.
Berger, J.O, De Oliveira, V. and Sanso, B. (2001). Objective Bayesian Analysis of Spatially Correlated Data. Journal of the American Statistical Association., 96, 1361 – 1374.
Diggle, P. and P. Ribeiro (2007).Model-Based Geostatistics. Springer Series in Statistics.
nsroba
,tsrobapred
set.seed(25) data(dataelev) d1=dataelev[1:42,] reselev=nsroba(elevation~1, kappa = 0.5, cov.model = "matern", data=d1, ini.pars=c(10,3),intphi=c(0.8,10)) datapred1=dataelev[43:52,] coordspred1=datapred1[,1:2] nsrobapred1(obj=reselev,coordspred=coordspred1,xpred=rep(1,10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.